7,477
questions
0
votes
1
answer
27
views
Laravel 9 Bug? Changing config/mail.markdown.theme does not work. Still loads default from vendor published folder
So editing the config/mail.php during launch time to let each user have their own mail template:
Config::set('mail.markdown',[
[
'theme' => 'domain.com',
'paths' =&...
-3
votes
0
answers
19
views
Coupons for the lectures I offer in Laravel [closed]
I want a way to buy a product, for example, through coupons that I create in the admin panel. The producer must place the coupon so that it is opened only to the user who purchased it. The product ...
0
votes
1
answer
40
views
Getting "Undefined variable $slot" when trying to render blade component on Laravel with Livewire 3
Hello I made a new project to see why i'm having problems when rendering blade with livewire 3 components. I have my app.blade.php and my counter.blade.php with Counter livewire component.
The ...
0
votes
0
answers
16
views
Laravel Pest and Blade directives
I'm building an admin panel, where a button is only visible if the user has a type of "Reader". For that purpose I create a custom Blade if, what is look like this
Blade::if('reader', ...
0
votes
0
answers
23
views
Laravel: How can I optimize my job posting form in Laravel with Blade components? And have it load faster? FOUC problem
I'm working on a job posting form in Laravel using Blade components and Tailwind CSS. The form includes various input fields for job details like title, description, location, type, etc. I'm concerned ...
0
votes
0
answers
19
views
Azure portal onClosed function in BladeReferenceCommon can't be triggered if the blade is kept open for more than 1 minute before being closed
We recently updated the code logic to send a request while a blade is being closed.
The updated code logic is as follows:
onClosed: async (reason, data) => {
if (reason === Az.BladeClosedReason....
0
votes
1
answer
31
views
Image not loading in e-mail after renaming jobs in Laravel
So, I have a Laravel app that sends out e-mails using jobs/queues. It worked great, but I updated the names of the mailable/jobs so that it would make more sense. But after that, images in the mails ...
0
votes
1
answer
44
views
Table stops rendering when moving the blade.php file
I got a blade.php table that renders from a index method of a controller with a @foreach method, I need to move this file in a subdirectory folder to work around some url directions on the controller, ...
1
vote
1
answer
48
views
Issues with Passing Form Action to Controller in Laravel
I'm new to Laravel and I'm trying to converting my codeigniter code into laravel, now am experiencing an issue with passing form actions to my controller.
When i clicked on Add Vehicle button it ...
0
votes
1
answer
36
views
Merge laravel component background color with custom tailwind color not working
I am trying to overwrite the background color of a laravel component with a custom color setup in tailwind:
<x-button id="book_but" onclick="book()" class="bg-accent"&...
0
votes
0
answers
60
views
How can I use Laravel/filament components properly? I created a new custom blade page and its not using the right theme
I tried almost everything and tables are right models are right but when I create a custom blade page I get this view. I just wanted a create a page like using customer table and mails table so I can ...
0
votes
0
answers
26
views
Laravel custom admin authentication using repository pattern
This is my functionn for authenticating the user but it does not work I defined this function in the UserRepository
public function loginUser(array $data)
{
if (Auth::guard('admin')->attempt(['...
0
votes
1
answer
29
views
Laravel 11.21 server.php File Missing After Running php artisan serve — How to Resolve?
Why the server.php given by laravel is being deleted when i exit the terminal in VS code or in CMD i currrently using
xampp
php v8.2.12
composer v2.7.6
laravel framework v11.21.0
i try to uninstall ...
0
votes
1
answer
57
views
Why do I keep getting a hasEvenNumberOfParentheses error in Laravel/Blade even though my code seems correct?
The project I am working on currently has this snippet of code:
@if (isset($scripts) && is_array($scripts))
@foreach ($scripts as $script)
<script src="{{ $script }}"&...
0
votes
2
answers
60
views
Laravel Job Logs Show Incorrect Time - How to Synchronize Time Zones?
I’m facing a small issue with time zones in my Laravel application and would appreciate your help. I have a scheduled job in Laravel that updates event statuses. The job logs show the following ...
0
votes
0
answers
36
views
Cant send data to destination page using compact
I've already passed data to the destination page using compact by a method. now I want to pass data to the destination page using compact again. Is there any problem for that? Firstly I tried to use ...
1
vote
0
answers
58
views
Can't access assets from different directory level problem Laravel 11
Hello I am using laravel 11, I am running into a specific issue for a long time, let me explain my problem with example.
Suppose default laravel directory is like this
/root
/app
/bootstrap
/...
0
votes
0
answers
7
views
ErrorException Undefined variable $brand_permission_active (View: C:\xampp\htdocs\Healthshade\healthshade\resources\views\layout\main.blade.php)
When i try to render permission through blade files it showing this error . For resolving i have tried to defined permission in controller but not working Can anyone help me please
Here is the code
@...
0
votes
1
answer
22
views
undefined variable in laravel blade
i have a blade page in laravel project has for each loop in first div class that has fetch data from controller and loop in the table but also i have called that variable after foreach function in ...
0
votes
0
answers
15
views
Laravel Blade prevent using compromised passwords
I have a system on my site made to update user passwords. Within the controller is the function update.
use Illuminate\Validation\Rules\Password;
use Illuminate\Support\Facades\Hash;
use Illuminate\...
1
vote
1
answer
66
views
I expected a menu collection but got objects, why?
I have a cashier page that goes to the layout page, I use the blade template in Laravel 11, namely {{ $slot }}, continuing with the problem, I experienced an error, namely Expecting a collection for ...
1
vote
0
answers
32
views
Customising Laravel Filament Login Page Error
In filament v3, I get an error message on the login screen, stating "These credentials do not match our records."...
how can I edit that,
for example, if a user who does not have access to ...
0
votes
1
answer
63
views
Border bottom in tr table only if condition is verified
As already indicated in the title, I want to add a bottom border on the row only if the date in the row IS DIFFERENT from the row below.
Below is my code; as you can see I added the condition in the ...
1
vote
1
answer
44
views
How to paginate only one collection in Blade while keeping the other collection static?
I'm working on a Laravel project where I have two collections of jobs: one paginated and one static. Here's the code in my
Note: I want to add 2 different paginator links for featured and jobs
...
0
votes
0
answers
21
views
Passing data to a blade template
I have a table with events and actions to delete the events. How do I pass the id of the event (and maybe the whole event to also get the title) to the modal? I am using bootstrap and Laravel.
...
0
votes
1
answer
31
views
Google Authentication Avatar
public function callback()
{
$googleUser = Socialite::driver('google')->user();
$user = User::updateOrCreate(
['google_id' => $googleUser->id],
...
0
votes
0
answers
34
views
how to auto login after signUp using Auth.php in Laravel11
Auth.php
<?php
return [
'defaults' => [
'guard' => env('AUTH_GUARD', 'web'),
'passwords' => env('AUTH_PASSWORD_BROKER', 'use_accounts'),
],
'guards' => [
...
1
vote
1
answer
29
views
Laravel Auth Session Text
simple and easy question from a newbie...
I have a new setup of laravel11 and implemented the login and registration function with verifyMail from the documentation.
Everything works fine. I also can ...
0
votes
1
answer
60
views
Undefined variable when returning view from controller in Laravel
I have a Laravel controller method designed to truncate strings from a Profile model and pass them to a view. However, I'm encountering an "Undefined variable $cutJobTitle" error when trying ...
0
votes
0
answers
29
views
Web Radio API constantly refreshing
I was trying to create a way via Laravel/Livewire to create some sort of Web Socket or otherwise continuous "communicate" with my API end-point. Basically I'm creating a Web Radio that ...
0
votes
1
answer
28
views
Search functionality is not working in Livewire Laravel
I don't understand why is it not working i neither see any errors nor any progress. Somebody please help what i am missing in my code. I already put @livewireStyles in head and @livewireScripts in ...
0
votes
1
answer
66
views
method is not supported for route login
The GET method is not supported for route login. Supported methods: POST.
I don't understand where the login happens here
Why doesn't my Kernel go further?
My Client
async resend() {
try {
...
-3
votes
2
answers
82
views
Laravel, Laravel Blade, Generation Error Exception Undefined Variable $helper when I click the home page navigations second link
I refactored my code, even so, I'm still generated the same Error Exception. I will show the old code and the refactored code. I'll also provided the error message generated by Laravel. in addition to ...
0
votes
1
answer
33
views
Laravel Inertia Templating Issue
I've worked with Laravel and Angular before in a headless fashion where I was just building API endpoints with Laravel and consuming those with an Angular front-end but it was a few years ago. I've ...
0
votes
1
answer
47
views
HTML Elements in Laravel
Currently I am pulling product information & HTML elements from the database, I have used {!! !!} to display unescaped data.
This works on web browsers, however in the ios & android ...
0
votes
3
answers
117
views
How to redirect based on the previous routes in laravel
There are two ways to delete a post in my app:
way 1:
urls:
/ -> posts/{post} -> posts/{post}
names:
home -> posts.show -> posts.destroy
way 2:
urls:
/posts -> /posts/{post} -> posts/...
0
votes
1
answer
98
views
I keep getting this error "Cannot access offset of type string on string" whenever I try to serve dummy data to my Laravel application [closed]
I am trying to serve some data to my view. However, when i try to access the elements in my dummy array, i keep getting an error "Cannot access offset of type string on string". And I don't ...
0
votes
0
answers
27
views
Echoing from .jsx into Blade file. ReactJS & Vite
I've got a weird problem where I'm transferring blade.php code into .jsx, and in Blade, PHP's echo {{asset()}} and Blade's @ syntaxed code is referred to a lot.
How would I go about putting it inside ....
2
votes
1
answer
105
views
Handling Nullable Numeric Inputs in Livewire Components
I'm working with Livewire components in a Laravel application, and I'm encountering issues when handling nullable numeric inputs (e.g., integers, floats). Specifically, when a user clears a numeric ...
0
votes
0
answers
54
views
How can i concatenate (dropzone.js) front chunk file with laravel controller
@section('css')
<link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.9.3/min/dropzone.min.css" rel="stylesheet">
@endsection
@section('content')
<h1>File ...
0
votes
1
answer
67
views
Livewire 3 - Month picker / Datepicker Not Fired when using component lazy
My project using livewire 3 has a slight problem that occurs when my component uses lazy components.
<livewire:report lazy />
When I don't use lazy, monthpicker and datepicker don't have ...
0
votes
0
answers
30
views
Cached view file does not exist, but only for one user
Having a bizarre issue where Laravel is unable to find a cached view file, but it only affects a single user out of dozens. Everybody else is able to use the website fine, but for this lone user they ...
0
votes
0
answers
110
views
Custom Form field returning null value
I am building a Filament (v2) bulk action modal with some draggable checkbox options.
However, i created the custom form field and used it but when i try to submit it returns null.
Modal:
...
0
votes
2
answers
237
views
Error in Return value must be of type Illuminate\Database\Eloquent\Collection
I am currently learning Laravel Filament, but suddenly there is an error like this. Previously, I fixed the error, but the result was not as expected.
This is a screenshot of the error result and its ...
0
votes
1
answer
27
views
Change value when change dir in Laravel
I have a Laravel app that uses two (2) languages, and in my language file, I put dir= rtl and ltr.
Then in my layout I used this:
dir="{{ trans('front.lng') }}"
Now, I want to make variables ...
1
vote
1
answer
36
views
Laravel blade - show eager loaded relation values
I have two tables with a one toy many relation
category_type (e.g. a value of "Fruit"
category (e.g. a value of "Apple"
I would like to build a dropdown with values like "...
0
votes
0
answers
22
views
Carbon Laravel class not working properly when shortening seconds, minutes, and hours
My problem is probably simple, instead of getting 1s, 2s, 3s, ... 59s, then 1m, 2m, 3m, ... 59m, then 1h, 2h, ... 23h, 1d. I'm only getting the ones of that, meaning I only get 1s, 1m, 1h. For examply,...
0
votes
1
answer
261
views
Laravel 11 Blade component for select with array
I'm pretty new to Laravel and I've created a blade component for displaying selection components but I'm getting the following error when the page is rendered.. The attributes merge is causing the ...
0
votes
1
answer
35
views
Laravel excel returns empty when i use a custom filter
Am working on this laravel excel but I received an empty result. So just to emphazise In my controller I need to filter the model before passing it in the ScanExport but am receiving an empty output.
...
1
vote
0
answers
53
views
Problem with tailwind styling in blade component
I am trying to create a radio button where the background color changes depending on the option you select. But anytime I click on the first option the second option retains the background color. But ...