The composer run dev
command was added in Laravel 11.28 but it doesn't get added automatically to projects that were created with
an earlier Laravel version and then upgraded beyond 11.28.
To add the command, edit composer.json
and add the following to the "scripts"
section after the last script entry:
,
"dev": [
"Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"