All Questions
16,702
questions
-3
votes
0
answers
18
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 ...
0
votes
1
answer
27
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 (...
-2
votes
2
answers
58
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 ...
1
vote
2
answers
78
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-...
0
votes
1
answer
38
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 ...
-1
votes
2
answers
56
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:
...
0
votes
1
answer
58
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 ...
0
votes
1
answer
29
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 ...
0
votes
0
answers
56
views
Laravel Queues do not work on production server
Faced with this problem:
On a locally deployed server (Laravel Herd), I created a Job that gets the track number of an order from the delivery service API.
I specified QUEUE_CONNECTION=database in ....
0
votes
0
answers
27
views
Persistent Database Connection Issues on GoDaddy VPS with Laravel 9.19 and PHP 8.0 After Server Rebuild
I have a connection issue on my VPS from GoDaddy. It is a site based on Laravel 9.19 and PHP 8.0. The problem started after we decided to rebuild the server. Since then, I have had issues with the ...
-4
votes
0
answers
33
views
Couldnt connect railway's MySQL database with railway's laravel project [closed]
I'm trying to connect a Laravel application deployed on Railway to a MySQL database managed by Railway. I have replaced app url, database name, port, host name, but still showing this in MySQL.
...
0
votes
0
answers
27
views
How to show posts to user based on likes and comments by following account?
i am making website using laravel and want to add functionality where user can see those posts which are liked or commented by those accounts which are followed by logged in user and exclude posts of ...
0
votes
1
answer
40
views
Laravel Mysql Wildcard not pulling all results
I have this Laravel query which searches two fields in the table (name, introduction) for matching entries:
$data = Listing::select("name", "slug")
->where("...
0
votes
0
answers
43
views
Laravel migration problem with env file maybe
I just started working with Laravel and php and my supervisor just asked me to clone the Laravel repo from git and run it in my computer. the localhost/login page works, but I tried running php ...
0
votes
0
answers
44
views
Optimize Laravel command, too many sql queries
this command works, and gives expected result, only problem is its performance, since there are multiple warehouses(companies) command has to job for all, so it takes a lot of time. I am looking to ...