Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
1 answer
25 views

laravel model pages not communicating properly

Working on a client project, hit a setback. Laravel is reading "Call to undefined relationship [service_item] on model [App\Models\Service]". It's simply trying to read data from two ...
Graeme Robinson's user avatar
-2 votes
0 answers
19 views

Laravel 10 migration data type ( Exg : text, string, longtext ... Etc.) size list in charector and size(kb pr mb)

Laravel 10 migration data type (Exg: text string longtext etc.) Data type size KB (char) String xx kb (cab) Text xy kb (acb) Can anyone share this list. A list of data type and it's sizes ( ...
Aimless's user avatar
0 votes
1 answer
33 views

Eloquent ORM performance with subqueries for relational models

Laravel eloquent uses subqueries for relationship model instead of joins as joins offer more optimal performance .How does eloquent orm ensures performance for relational models ?
Rubin Porwal's user avatar
  • 3,805
0 votes
1 answer
28 views

Laravel app getting "[1045] Access denied for user 'root'@'172.19.0.4'" error when connecting to MySQL Docker container

I'm facing an issue connecting my Laravel application to a MySQL Docker container. When I run php artisan migrate, I'm getting the following error: SQLSTATE[HY000] [1045] Access denied for user 'root'...
Adrian Gaile Singh's user avatar
-2 votes
0 answers
27 views

Laravel 11 Eloquent subquery statement failed [duplicate]

Please help with this subquery to transpile to Eloquent sentence: SELECT * FROM notifications WHERE id NOT IN (SELECT notification_id FROM notification_seen WHERE user_id = 1) Sql sentence works ...
MauricioB's user avatar
-1 votes
0 answers
51 views

How To generate codes for differnt kinds of users [duplicate]

I have a table users where i have 3 kinds of users Admin, Customer and User now i want to auto generate codes such as A000001 for admin and the number would keep on adding as admins increase, C000001 ...
Adarsh Kumar Singh's user avatar
0 votes
0 answers
34 views

Laravel passport slow query

Im using Laravel 10 (PHP 8.3) with MySQL database. The Laravel apps is deployed on server A, and the MySQL deployed in server B. For the first 3 weeks, the performance is awesome, but per today the ...
Andre Haykal's user avatar
-4 votes
0 answers
22 views

Gent Rent availability in each hour for 2 weeks, depending on rent schedule, item quantity and current orders dates [closed]

I am trying to implement the function in PHP/Laravel (it is possible and advisable to use Carbon to work with dates) for this task, and don't know how to do this properly: I have two arrays, one ...
Dmitry's user avatar
  • 489
0 votes
1 answer
30 views

Unable to log in as mysql root user in Laravel Sail

I'm trying to grant privileges to my "sail" mysql user, but when I log in as root it is logging me in as sail instead. I should note that I can connect to mysql fine in PHPStorms db browser (...
Cloudboy's user avatar
-2 votes
2 answers
61 views

Why can't my laravel database be found now even if I had already used it a few days ago?

I'm new to using the laravel framework, and I'm struggling in starting my project due to several problems I've encountered while setting up. I'm currently using Linux as my command prompt and Xampp ...
Andy's user avatar
  • 1
1 vote
2 answers
101 views

MySQL docker container stuck reloading

My stack is win10/wsl2/ubuntu/docker desktop. I'm stuck on running a MySQL docker container. This is a part of my docker-compose.yml: mysql: hostname: a-mysql container_name: a-...
ANDREI MIRONOV's user avatar
0 votes
1 answer
44 views

Laravel Controller Not handling FormData from React Frontend

I am working on a ReactJS frontend and a Laravel backend. My ReactJS frontend sends FormData to a Laravel controller for updating an event. The FormData is correctly populated on the frontend before ...
Souhaiel Karbaa's user avatar
-1 votes
2 answers
79 views

Base table or view not found: 1146 Table 'example_app.sessions' doesn't exist

I am trying to set up Laravel 11 on Windows 11. I am using WAMPServer for Apache/PHP/MySql. I have installed the installer globally using Composer. I then run this command to create a Laravel project: ...
Joshua Rogers's user avatar
0 votes
1 answer
59 views

Error: 1826 Duplicate foreign key constraint name 'id'

I've created a basic database structured as follows. vehicle_makes (id, name, slug) vehicle_models (id, name, slug, make_id) vehicle_trims (id, name, slug, model_id) When attempting to create the ...
David Anderson's user avatar
0 votes
1 answer
34 views

Laravel queued job fails with different exceptions after 5-20 minutes of execution

The job is loading a huge 100M CSV into mysql table via LOAD DATA INFILE. After different periods of working the job fails App\Jobs\UpdateProducts ................... 17m 43s FAIL but remains in jobs ...
discodancer's user avatar

15 30 50 per page
1
2 3 4 5
1114