Skip to content

Instantly share code, notes, and snippets.

@ceilidhboy
Created April 26, 2025 08:14
Show Gist options
  • Save ceilidhboy/491e78ebc08498df7be5ea2884ab4b89 to your computer and use it in GitHub Desktop.
Save ceilidhboy/491e78ebc08498df7be5ea2884ab4b89 to your computer and use it in GitHub Desktop.
Add new `composer run dev` command to existing Laravel app

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"
        ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment