Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

I am using Laravel v12 with Filament v4 and TailwindCSS v4. I wanted to build a site with tabs, witch are a Livewire component inside filament/Page. In this Livewire components I have 3 tabs, where ...
Keso's user avatar
  • 101
Best practices
0 votes
1 replies
32 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
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
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
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
2 votes
1 answer
104 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
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
66 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
5 votes
1 answer
159 views

I've encountered a problem in my Laravel 12 project. I usually save my data in a remote SQL Server database, but I have to consider the case of a db server malfunction. I have a backup local ...
iLux24's user avatar
  • 85
0 votes
0 answers
74 views

I’m working locally with Laragon and multiple Laravel projects. The setup looks like this: Website A → its own .env (website-a.env), with DB website_a. Website B → its own .env (website-b.env), with ...
JJuless's user avatar
  • 147
0 votes
1 answer
168 views

I am new in laravel 12. I have a project in laravel 12. My custom CSS file is completely working in localhost after i run npm run dev, then i run npm run build to upload the project to my own server, ...
user2419119's user avatar
0 votes
1 answer
59 views

I am trying to update data with where condition. I am trying to get the where condition of update statement from the select statement. But in this case the data is not updated. public function update(...
user4221591's user avatar
  • 2,236
0 votes
0 answers
29 views

occurs this error in live project hosted in contabo sesrver i have create project in laravel12,php 8.2 & database used MySQL. this project hosted in contabo serve in this why generate this error ...
dharmendra hubwale's user avatar
-1 votes
1 answer
118 views

I have a table in my blade page, <table> <thead> <tr> <th>Color</th> <th>Total</th> </tr> </thead> <tbody> @if ...
user4221591's user avatar
  • 2,236
1 vote
1 answer
34 views

I have deployed a Laravel 12 + Inertia.js (React) app on a shared hosting (cPanel). The app is located in a subfolder: https://mydomaine/app/. Authentication routes like: https://mydomaine/app/login ...
kamal ennaji's user avatar
-1 votes
2 answers
126 views

I'm having this error that I can't seem to resolve. I'm making a Laravel application in PHP. The routes in the web.php file are correct. There are no errors in the controller, nor in the kernel.php ...
utente1234567890's user avatar
-2 votes
2 answers
131 views

I am returning json response from index method of my controller class. use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Admin\Services\Finish; class FinishController ...
nischalinn's user avatar
  • 1,284
0 votes
4 answers
179 views

I am trying to call a controller method using ajax. But I do not know how to do it? I have tried several ways but can not find the right one. My controller method:: use App\Http\Controllers\Controller;...
nischalinn's user avatar
  • 1,284
-1 votes
1 answer
69 views

I have a controller method which I am using to change the status of the row data in the database. But I forget to mention status field in the model file. So the status was not changing in the database....
nischalinn's user avatar
  • 1,284
1 vote
2 answers
902 views

I want to use different error pages for the admin panel and the frontend in Laravel 12. I created a custom exception class for this purpose, but I haven’t figured out how to activate or use it yet. ...
Tuğran Demirel's user avatar
-1 votes
1 answer
71 views

I am trying to render an image in my carousel from the database, using a for loop. But I am stuck on how to use a for loop here, and how to render an image in style="background-image:url. My code:...
nischalinn's user avatar
  • 1,284
0 votes
2 answers
86 views

How to write artisan command to create model and controller inside specific directories. If I do this command:: php artisan make:model Post -mcr it create Post controller inside controllers folder, ...
nischalinn's user avatar
  • 1,284
0 votes
1 answer
128 views

I’m building a Laravel 12 e‑commerce site (PHP 8.2). Product prices are stored in MySQL as DECIMAL(10,6): base_price DECIMAL(10,6), profit DECIMAL(10,6) Many articles recommend adding a cast in ...
Lana Hanna's user avatar
1 vote
0 answers
99 views

I am trying to dump my mysql schema in laravel project using the following laravel artisan command but gets error on windows 10 machine. I am using windows powershell (PS). php artisan schema:dump # ...
shah sawood's user avatar
0 votes
1 answer
154 views

I'm working with Laravel Filament where I'm using audits package for audits the activity of laravel model. I've laravel model like: <?php namespace App\Models; use App\Casts\Money; use App\...
Kishan's user avatar
  • 11