212,372 questions
Score of 0
0 answers
94 views
How to design a zero-downtime schema migration strategy for a high-traffic Laravel/MySQL application with hundred of millions rows?
I am designing a Laravel application that handles millions of daily requests with a MySQL database containing tables with hundreds of millions of rows.
A common requirement is adding or modifying ...
Score of -2
2 answers
87 views
Issue with the Laravel Public URL
RewriteEngine On
# Block direct access to /public/* from the browser
RewriteCond %{THE_REQUEST} \s/+public[/\s?] [NC]
RewriteRule ^ - [F,L]
# Redirect everything else internally to /public folder
...
Score of 0
1 answer
106 views
AI generation works, streams (typed out) to the page, but keeps disabled and loading blocks
I am using Laravel 13, Livewire V3, and the Laravel AI SDK to generate AI messages based on Knowledge Chunks. That part works great, and it streams to the page.
However, the problem is that the ...
Score of -3
1 answer
55 views
php artisan native:Watch watchman-wait: not found
for running a nativephp in a real device and watching it (update the app on file changes), we need watchman:
sudo apt install watchman
and then we can run it:
php artisan native:run --watch
but ...
Score of -1
1 answer
86 views
Empty query parameters are not appended with withQueryParams
I have submitted a form whose fields can be empty and the resulting URL is <http://localhost:8000/oglasi/pretraga?grad=&broj_soba=&m2_od=&m2_do=&cena_od=&cena_do=>.
Filter ...
Best practices
1
vote
6
replies
139
views
How to prevent database lock contention during high-frequency API state syncs in Laravel?
I am architecting a high-concurrency synchronization endpoint in Laravel where thousands of cross-platform mobile clients concurrently send payload mutations to update a single user state row in a ...
Score of 0
0 answers
123 views
Laravel 13 interactive Artisan prompts immediately exit on Windows 11 (exit code 255)
I'm experiencing a strange issue with Laravel 13 on Windows 11.
Any Artisan command that requires interactive input immediately exits before I can type anything.
For example:
php artisan migrate
...
Advice
0
votes
2
replies
60
views
Best Practice for Scaling Laravel Queue Workers for Multiple Shopify Apps
I'm hosting public Shopify app on Cloudways Server. The app is built with Laravel and React, and currently has over 250+ merchants. As the number of merchants grows very fast,
the app handles many ...
Score of 2
2 answers
122 views
Laravel sidebar navigation causes full page reload instead of smooth navigation
I'm working on a Laravel project where I've integrated the AdminLTE template with Blade, and I'm using Vite as the asset compiler. When I click any sidebar link, the entire page reloads (“flashes”) ...
Score of 0
2 answers
72 views
How to use select ui component in Laravel vue-starter-kit
I am using Laravel's vue-starter-kit and inside resources/js/components/ui/ folder there are some different ui components. For example If you need to use Input it's easy, this is how:
import { Input } ...
Score of -2
1 answer
67 views
Conditionally alidate field if another field is entirely valid and not just filled
realestate\app\Http\Controllers\AuthController.php has registration validation rules and register method:
use Illuminate\Http\Request;
use Illuminate\Support\Facades\{Auth, Log};
use Illuminate\...
Advice
0
votes
1
replies
63
views
High FCP/LCP Huge "Other" time in Main-Thread Work and unused vendor JS
I deployed my first Laravel/Vue website for the company I work at (not a software one) and I am trying to optimize the performance of a SPA built with Laravel 11, Vue 3 with Tailwind, Inertia.js, and ...
Score of 0
0 answers
54 views
Manually triggering Stripe payout to connected account fails - not enough balance error despite stripe account being loaded
I have a marketplace AirBnB type application - providers set up rooms and my platform allows the booking - payments are received and I've set it up so a paymentIntent is created when a booking is made ...
Score of 0
1 answer
116 views
How to use Eloquent casts in `firstOrCreate`?
I have a PostgreSQL database table tasks that includes a column eligible_status_ids BIGINT[]. I also have a Laravel Eloquent cast PostgresArrayCast that transforms between the postgres array format (e....
Score of 0
1 answer
114 views
Auto-discovery of event listeners inside a src custom directory
I’m having a problem with auto-discovery of my Listener under the src directory in a Laravel 12 project.
The application structure goes like this:
- app (nothing in here)
- bootstrap
-- app.php
- src
-...