Skip to main content
Filter by
Sorted by
Tagged with
5 votes
1 answer
169 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
3 votes
2 answers
7k views

I am currently working with Laravel 12.13 and facing an issue with CORS. I have configured the HandleCors middleware and the CORS settings in my application, but I am still getting CORS errors when ...
Anna Pons's user avatar
3 votes
0 answers
101 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
2 votes
2 answers
103 views

I have an object which have created property like unix timestamp integer. I try to convert this property to DateTime object and supposed the PHP will set up correct Timezone according application ...
Čamo's user avatar
  • 4,413
2 votes
1 answer
111 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
  • 2,021
2 votes
1 answer
139 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
1 vote
2 answers
182 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
1 vote
2 answers
962 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 vote
2 answers
557 views

I'm doing an online course to learn Laravel, and I have decided to follow it using the latest version of Laravel. The person on the videos uses an older version of Laravel, so obviously some of the ...
Adrian2895's user avatar
1 vote
1 answer
42 views

Currently the app has 2 entry points for the JS and CSS files in the blade layout file: {{-- layout.blade.php --}} <head> <meta charset="utf-8" /> <meta name="...
pileup's user avatar
  • 3,462
1 vote
1 answer
74 views

I am trying to post my form data using ajax. I am serializing the form data before posting. But at the controller method, it shows null. There is no problem with the form data because I can pass data ...
user4221591's user avatar
  • 2,236
1 vote
1 answer
53 views

I am trying to retrieve category (id, category_name, status) table data using where condition and sort in descending order for id. I am writing query like:: public function category() { $...
nischalinn's user avatar
  • 1,284
1 vote
1 answer
77 views

In Laravel 12 / vuejs 33.5.13 / element-plus 2.9.5 app I use date-picker component <el-dialog v-model="dialogVisible" title="Select Day"> <el-form :model="form&...
mstdmstd's user avatar
  • 3,309
1 vote
1 answer
854 views

I am using built-in authentication for login and registration with the following command: php artisan ui bootstrap --auth Now, the problem is that I am already logged into my site. When I open another ...
Urmish Solanki 's user avatar
1 vote
0 answers
30 views

I’m using Laravel 12 and I want to run a scheduled command every day at 07:00 UK (Europe/London) time, but my server is configured with UTC timezone. In my bootstrap/app.php I have and its working: $...
Ashwini Singh's user avatar
1 vote
1 answer
43 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 vote
1 answer
123 views

I'm working on a Laravel 12 project using XAMPP on Windows 10. I tried to use the following command to create the symbolic link for serving uploaded files: php artisan storage:link But the public/...
Satria Indra Mulyana's user avatar
1 vote
2 answers
103 views

I am using Laravel V:12 and Spatie Role/Permission V:6. for multiple roles (super_admin, sub_admin, user, sub_user). I created one seeder for creating an admin user and its role/permission. At the ...
Rajan Rathod's user avatar
1 vote
1 answer
274 views

I created a new Laravel 12 application following the Installation guide. The project is generated correctly and I ran all migrations. When I run php artisan --version I get: Laravel Framework 12.20.0 (...
Samball's user avatar
  • 879
1 vote
1 answer
52 views

My datatable is working fine, all the features like pagination, sorting, searching are working with static table data content. But when I fetch data from database and render in datatable features like ...
user4221591's user avatar
  • 2,236
1 vote
0 answers
100 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
1 vote
0 answers
102 views

I have a simple form where users come to report who they helped, and how. It is anonymous in the fact that they do not have to login in, but they are asked to provide their name. They will make many ...
wruckie's user avatar
  • 1,821
1 vote
1 answer
124 views

I'm using laravel 12.0.1 and try to check the user is logged in or not in the middleware. I set the session value in api Controller, but when I call this value in the middleware, it is null. And my ...
takoChen's user avatar
1 vote
0 answers
123 views

I'm trying to use Laravel Reverb in a Laravel 12 application. I've gone through several tutorials and documentation, but almost all of them implement authentication using Laravel Breeze. However, with ...
Nima_8FT's user avatar
1 vote
2 answers
90 views

I'm trying to use the Base (Dark) select element from HyperUI. https://www.hyperui.dev/components/application/selects Of note is the height of the element, and the styling of the handle. However, ...
NeomerArcana's user avatar
  • 2,373
1 vote
0 answers
376 views

Hi im trying to do a app using react as front-end and laravel 12 as api doing AJAX requests i can create users from bruno but when i trying with my react app i always receive the following CORS error:...
AngeloChispa's user avatar
1 vote
1 answer
39 views

I have a table called "Terroir" with some parameters. Schema::create('terroirs', function (Blueprint $table) { $table->id(); $table->string('name', 255); $table-...
Stephan Apenbrink's user avatar
1 vote
0 answers
232 views

I create session and session values are deleted when I refresh the page. I make the user login and when I refresh the page, auth()->user() returns me NULL value as if there is no one logged in. ...
Burhan Çelebi's user avatar
0 votes
2 answers
65 views

I have 10 items in my database table. I want to apply same CSS style to the divs in the arithmetic sequence of 3 items. For example, items [0, 3,6,9] will have CSS style slideInDown, items [1,4,7] ...
user4221591's user avatar
  • 2,236
Advice
0 votes
5 replies
149 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
0 votes
1 answer
176 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
118 views

I have a dropdown list, here in the option I want to load image also. I took reference from: i want to display image in select option dynamically but not working But the image is not loading. The path ...
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
155 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
0 votes
1 answer
105 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
0 votes
1 answer
66 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,462
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
2 answers
89 views

$transactionsData is an array, and I want the id from transaction id from the transaction model for each item and assign it to the details to insert the id to the transaction item table, how can I ...
swatantra's user avatar
  • 493
0 votes
1 answer
85 views

In my app I had ca. 20 subdomains. Now they are gone and https certificates with them. However, Google is indexing my site with use of the subdomains, which was never my intention. Example: Google ...
Peter's user avatar
  • 2,729
0 votes
2 answers
59 views

I have a form modal and I am trying to send data using ajax post method to the controller method 'store' via my blade file. //// temp.blade.php file <script type="text/javascript">...
user4221591's user avatar
  • 2,236
0 votes
1 answer
92 views

This one has me confused! Update Fri May 30th I was able to create the subscription and the webhook was called and Laravel responded correctly. I think it has something to do with the local laravel ...
Ian Sweeney's user avatar
0 votes
1 answer
110 views

I've implemented a nested search-select component using a Flux input with a dropdown to display database results. The component's structure: <div class="relative flex-grow" x-data=&...
Negar Javadzadeh's user avatar
0 votes
1 answer
213 views

In Laravel 12, I have a controller function that looks a little bit like this (it's pseudo code, so any typos are incidental to my question; the code works in principle): public function getRemoteData ...
cartbeforehorse's user avatar
0 votes
1 answer
420 views

The whole project was building without much problems but since one or two days (and most probably after composer & npm) update/upgrades) it will return the following: npm run build > build >...
Michael Kocurek's user avatar
0 votes
2 answers
175 views

When I try to execute datatable with ajax in the TeacherController function show(Teacher $teacher) with foreign_key, I get Ajax Error even though in AssistanceTeacherController it does work in its ...
Elard Guevara's user avatar
0 votes
1 answer
85 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
37 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
37 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,462
0 votes
0 answers
21 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,462
Advice
0 votes
0 replies
48 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