Skip to main content
0 votes
0 answers
39 views

Fresh new installation of Laravel 12 composer create-project --prefer-dist laravel/laravel api cd api composer update sudo chmod -R 775 storage sudo chown -R www-data:www-data storage sudo chmod -R ...
Kevin Waterson's user avatar
Best practices
0 votes
1 replies
30 views

I have two models with global scopes. #[ScopedBy(UserScope::class)] class User {} #[ScopedBy(ViewerScope::class)] class Viewer extends User {} The scope just checks if class instance has is_viewer ==...
Denys Siebov's user avatar
0 votes
0 answers
34 views

I am using the Laravel 12 + React starter kit, and I want to create several components, for example: app/resources/js/components/Navbar.tsx app/resources/js/components/Footer.tsx app/resources/js/...
pileup's user avatar
  • 3,450
0 votes
0 answers
20 views

Right now, I can set the lang attribute by changing the value of locale inside /config/app.php, but I also want to set the dir attribute. I can do something like that inside the /resources/views/app....
pileup's user avatar
  • 3,450
0 votes
1 answer
64 views

I have an svg file placed in /public/assets/icons, and I try to use it from within a CSS file: .some-icon { background-image: url("/assets/icons/arrow.svg"); } I get error 404 Not Found ...
pileup's user avatar
  • 3,450
Advice
0 votes
0 replies
46 views

I'm building an HR Management System using: Backend: Laravel Frontend: Next.js Authentication(SPA): Laravel Breeze (already set up for backend) I'm a beginner in Next.js, and I’m a bit stuck on how ...
Shashi Kelum's user avatar
Advice
0 votes
5 replies
129 views

In Laravel 10, we had a RouteServiceProvider class that handled loading up all your different routes. This is a snippet from that file in an older project I worked on using Laravel 10: ...
Praise Dare's user avatar
1 vote
2 answers
170 views

I am trying to deploy an application on a shared hosting (LWS). My app uses Laravel12 as a backend and Vuejs as frontend The frontend is installed directly on the domain.fr and the backend on a ...
Meaulnes's user avatar
  • 553
0 votes
1 answer
74 views

I have upgraded a Lravel 10 app to the latest Laravel 12.36.1. On the Laravel 10 app I have an Ajax call in the backoffice to put the project down or up that calls a method setMaintenanceMode(string $...
McRui's user avatar
  • 1,988
2 votes
1 answer
96 views

I´ve created a duplicate project of mine to upgrade from Laravel 10 to Laravel 12. As far as the PHP code, routes, and database everything went well as expected. Yet, in my Laravel 10 project I had my ...
McRui's user avatar
  • 1,988
2 votes
1 answer
136 views

I have an Order model that has a many-to-many relation to the Product model: class Order extends Model { //... public function products(): BelongsToMany { return $this->...
Marleen's user avatar
  • 2,916
3 votes
0 answers
95 views

I'm working on a multilingual Laravel 12 app. All my routes are grouped under a {locale} prefix, like this: Route::prefix('{locale}') ->group(function () { Route::get('/activities/{...
20cnts's user avatar
  • 21
0 votes
1 answer
53 views

I am using Ubuntu 24.04 and a LEMP stack and vite to host a Laravel 12 application. I am deploying with deployer and running npm run build on the server. Occasionally, I get hit with what seems to be ...
wruckie's user avatar
  • 1,821
0 votes
1 answer
65 views

We’re running a Laravel 12 application (PHP 8.4) using Redis for sessions, cache, and queues — all within a single Redis database. 'redis' => [ 'client' => 'phpredis', 'options' => [ ...
alexmcfarlane's user avatar
0 votes
0 answers
21 views

I try to listen to ConversionHasBeenCompletedEvent to delete the original image after the conversion has been completed, but this event did not trigger in my listener. I'm using spatie laravel-...
TDM's user avatar
  • 1

15 30 50 per page
1
2 3 4 5 6