Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
36 views

My application uses Laravel Livewire with Alpine.js/SortableJS for drag-and-drop reordering of tasks between status columns. The tasks have a status (string) and a position (integer) in the database. ...
Christina Browne's user avatar
0 votes
0 answers
54 views

I’m working with Stripe subscriptions and customer balances (credits). By default, when a customer has credits in Stripe, Stripe automatically applies those credits toward the next invoice or ...
Rosh's user avatar
  • 491
0 votes
0 answers
57 views

In Laravel 11, Eloquent introduced HasScopedValues to define scoped values for model attributes somewhat like $casts. I’m unclear how it differs from $casts can it transform values like casts or is it ...
S. Narthanan's user avatar
3 votes
0 answers
265 views

I'm using Laravel's database notifications. When a user clicks on a notification, it first redirects to a controller that sets some session data, then redirects again to the final URL. However, on the ...
Gzai Kun's user avatar
  • 300
1 vote
1 answer
82 views

Laravel accessor not working after I upgraded from v8.75 to v11.31 I had this LARAVEL v8.75 App where in the User model I created an Accessor for photo like below public function getPhotoAttribute($...
Flying Eze's user avatar
-1 votes
1 answer
760 views

i have created a middleware public function handle(Request $request, Closure $next) { if (!auth()->check() || auth()->user()->role !== 'admin') { abort(403, '...
Faris Eka's user avatar
1 vote
2 answers
98 views

I have made a middleware for admin routes public function handle(Request $request, Closure $next) { if (!auth()->check() || !auth()->user()->is_admin) { abort(401); } ...
Mohsen's user avatar
  • 302
0 votes
1 answer
43 views

I have a Laravel scheduler configured to run every 6 hours. Based on the schedule, it should have already executed, but I don’t see any expected results or changes from it. I also added a logger() ...
fyz 08's user avatar
  • 59
0 votes
0 answers
69 views

I am using laravel 11 with Vite.config. I am trying to add Vue.js to my project. The instructions say that I must do this in my app.js import "./bootstrap"; import { createApp } from "...
paul kendal23's user avatar
0 votes
0 answers
33 views

I have made a upgrade from laravel 10 to laravel 11 but suddenly the laravel-debugger does not show all the tabs. To solve the problem I deleted the vendor map and composer.lock file and ran composer ...
Mohsen's user avatar
  • 302
0 votes
0 answers
105 views

I'm using Vite, Laravel Echo, and Pusher-js in my Laravel + Vue 3 project. My setup works perfectly in development with npm run dev, but after running npm run build, I get the following error in the ...
philip's user avatar
  • 345
0 votes
4 answers
164 views

I'm working with Laravel 11, Livewire 3.6.10, and Alpine.js (properly configured). I'm encountering an issue where wire:model doesn't bind the value to an input field after a page refresh, even though ...
Sayed Hussainullah Sadat's user avatar
1 vote
1 answer
174 views

I have Laravel 11.x app developing on Github Codespaces. I am trying to generate the documentation using Scramble package. Github Codespaces publish urls are using https. I am using api_domain entry ...
chameera's user avatar
1 vote
1 answer
54 views

I am currently Using Laravel 10 (I know it's outdated and I will upgrade asap), and I have node_modules folder inside the project because i installed some npm modules that I need. But I need to move ...
pileup's user avatar
  • 3,450
0 votes
1 answer
78 views

I was under the impression that middleware runs BEFORE the route functions it wraps around. Route::middleware([MyMiddleware::class])->group(function() { // routess }); But if one of the routes ...
Riza Khan's user avatar
  • 3,238
1 vote
1 answer
275 views

I followed all the upgrade guide requirements, but when I run php artisan, I get the following error: Undefined array key "driver" at vendor/laravel/framework/src/Illuminate/Filesystem/...
draw134's user avatar
  • 1,219
0 votes
1 answer
173 views

I have recently created a new project in Laravel 11 and can not get my custom error handling class to work. I have a class I use throughout all my Larvael projects (laravel 10). I want to use this ...
Jon Menard's user avatar
0 votes
0 answers
77 views

I have set a crawling command that works in local as well as in live using Laravel 11 and spatie browsershot. But when running directly from a url and cron in server following error occurs. I am using ...
Nikhil Dhakal's user avatar
0 votes
0 answers
42 views

I am using Tenancy for Laravel (Stancl/Tenancy), Laravel 11, package. Everything working well. I want to know how to supply name of channel as a variable to log messages in the tenant's folder using ...
user6404606's user avatar
1 vote
0 answers
57 views

I have this trait HasExtendedRoles.php trait HasExtendedRoles { use HasRoles; use HasExtendedPermissions { HasExtendedPermissions::getPermissionClass insteadof HasRoles; ...
3m1n3nc3's user avatar
  • 586
1 vote
0 answers
68 views

I have a Laravel seeder that is only inserting one record when I have a factory and the seeder should insert 2500 records. Factory: public function definition(): array { $timestamp = $...
kirkaracha's user avatar
0 votes
0 answers
63 views

ok, I've been using inertiaJs for a little over 1 year, only it's as if inertia can no longer receive data from the backend. for example, here's the simple authentification form I send: const ...
ALEXSAN DEV's user avatar
0 votes
0 answers
110 views

I'm using an XP-246B thermal printer. I have shared the printer and ensured that its name doesn't contain any whitespace. Also, I ran a test through Windows built in test page, and it was successful. ...
Oussama El Khamlichi's user avatar
1 vote
0 answers
18 views

I'm working on a Laravel application where I need to serve images stored in the filesystem and display them on a web page. I have defined the following route in web.php: Route::post('/image/{campaign}/...
Jamiropal's user avatar
0 votes
1 answer
100 views

I am working on multilingualism using the mcamara library This is what I did: In the laravellocalization.php file I activated the Arabic and English languages In the boostrab/app.php file, I added the ...
zockchin's user avatar

1
2 3 4 5
11