Skip to main content
Filter by
Sorted by
Tagged with
3 votes
1 answer
39 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
1 answer
103 views

I’m building a job board project in Laravel, and I’m trying to establish a one-to-one relationship between User and Employer. However, my database table is not being generated correctly — the columns ...
Izedin Abaoli's user avatar
0 votes
0 answers
59 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
1 answer
94 views

I have a Laravel application originally developed in Laravel 10, but I have since upgraded the application to Laravel 12. One of the changes starting in Laravel 11 is that custom service providers are ...
Phil Birnie's user avatar
  • 1,134
0 votes
0 answers
61 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
2 votes
0 answers
59 views

Recently after some research I came up with a question: how to handle default / initial data population in a Laravel project which goes live: should it go into seeders or migrations? I've seen two ...
Dmytro Shved'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
0 votes
0 answers
68 views

i am getting problem of getting unauthenticated in the phonepe refund api. also i am using that token in the payment time it's working fine. $data = $this->getAuthKey(); $payment = Payment::...
ravi upara's user avatar
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
0 votes
1 answer
180 views

I'm encountering an issue where Laravel events are firing multiple times, but only in the production environment. Environment: Laravel: 11.x PHP: 8.3 Web Server: Nginx Hosting: Azure App Services ...
Shaheed konnola's user avatar
-1 votes
1 answer
801 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
0 votes
0 answers
37 views

I have a Livewire Component Import.php: <?php namespace Modules\Donor\app\Livewire\Modals; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Notification; use Illuminate\Support\...
Michael Burton's user avatar
1 vote
2 answers
99 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
4 answers
278 views

So due to the fact that product quantities are not limited to integers but can store decimals up to 4 digits, I can have a product with quantity of 69.4160 square meters of something. Now assuming the ...
Matt Komarnicki's user avatar
0 votes
1 answer
44 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
38 views

public function handleGoogleCallback(Request $request) { $user = Socialite::driver('google')->user(); $findUser = User::where('google_id', $user->id)->first(); if ...
Akhtaruzzaman Sumon's user avatar
0 votes
0 answers
75 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
1 vote
2 answers
389 views

I'm using Laravel's filesystem with the S3 driver to connect to Backblaze B2's S3-compatible API. Here's my disk configuration in config/filesystems.php: 'disks' => [ 'b2' => [ '...
Dark knight'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
20 views

For my laravel application, I need the gpg command to do encryption and decryption of CSV file using asymmetric key. In my laravel application, I am already using symmetric key encryption and ...
xman's user avatar
  • 5
0 votes
0 answers
108 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
0 answers
41 views

I recently started a small excercise (I've been learning web developing since 5 months and just started a PHP Laravel course) creating a potential e-commerce and was tweaking the cart section. The ...
MatteoBaisotti9's user avatar
0 votes
4 answers
169 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
0 votes
0 answers
44 views

I am using maatwebsite/excel Export In Laravel 11.0 but I am facing an issue it is ignore any changes I made in the controller or in the export class here is my export class code: namespace App\...
Ahmad Nabil's user avatar
1 vote
1 answer
176 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
3 votes
2 answers
255 views

This is my config/filesystems.php: 'b2' => [ 'driver' => 's3', 'key' => '*************', 'secret' => '**************', 'region' => 'us-west-002', ...
wanted's user avatar
  • 459
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,472
0 votes
0 answers
196 views

I am having a problem with intervention image and Laravel 11. I am upgrading a program which is fine with Laravel 10. I installed with composer require intervention/image-laravel and then ran php ...
Jim's user avatar
  • 63
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
0 votes
1 answer
23 views

When I try to send an email with CC, BCC, or both CC and BCC, I get the following error: "Cannot access offset of type string on string." If I send the email without CC or BCC, there is no ...
B.Simsek's user avatar
  • 1,178
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
0 answers
34 views

I'm working on a Laravel 11 API using Sanctum for authentication. I have a route protected by the auth:sanctum middleware, and I'm sending a valid token in the request header. However, when I try to ...
Yerson Orejuela's user avatar
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
1 answer
82 views

I have a method that performs a find() and return the model, like this: function getRecord(string $id): MyModel { return MyModel::query()->findOrFail($id); } With this code I get the following ...
Mistre83's user avatar
  • 2,817
0 votes
0 answers
79 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
1 vote
1 answer
75 views

class ExampleUserService { public function approve($user, $data) { $approvedUser = DB::transaction(function () use ($user, $data) { if ($data['approve_by_admin'] == 1) { ...
Dilip Thakre's user avatar
0 votes
0 answers
46 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
0 votes
0 answers
40 views

I have created City, Area, Subarea Crud in Laravel 11. where city and area are simple are working correctly but the subarea blade in the add form when the city is selected then why respected areas to ...
Haseeb Yaseen'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
2 answers
213 views

I'm trying to use pagination but when I check it, it doesn't show up in the UI. I've searched and tried many solutions but still no luck. is there something missing or wrong in my code? Blade <div ...
Zebra's user avatar
  • 63
1 vote
0 answers
70 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
22 views

Issue I'm facing an issue where npm run watch (Laravel Vite) crashes every time I modify and save an SCSS file. The error message shows that a file is locked (EBUSY error), forcing me to manually ...
Tin Tomić's user avatar
0 votes
0 answers
67 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
1 vote
0 answers
74 views

I am trying to build a multiplayer game using only WebSockets for the chat and the game moves. My version is laravel 11, I started this before v12 came out. I am also using Laravel Reverb for the ...
UBL's user avatar
  • 11
0 votes
0 answers
111 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 votes
1 answer
151 views

Laravel route returns 404 when accessing via localhost, but works with php artisan serve I downloaded Laravel and wrote some routes and views. Then, I used XAMPP to start Apache and MySQL. After that, ...
SIGMAF0'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
-1 votes
3 answers
158 views

laravel 11 here in web.php Route::resource('event', EventController::class); works ok when i replace this line by Route::get('/event', [EventController::class, 'index'])->name('event.index'); ...
keyon8060's user avatar
0 votes
1 answer
101 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
2 votes
1 answer
137 views

What I need is to use prefix() with Middleware simultaneously within Laravel. For example this code: Route::prefix('admin')->group(function () { Route::get('/users', function () { // ...
zockchin's user avatar

1
2 3 4 5
11