CodingTricks LogoCodingTricks
HomePostsTipsCopy/PasteLinksContact UsAbout Us
2024 - 2025 CodingTricks.co | All rights reserved
Privacy PolicyTerms of Service
New composer run dev command in Laravel

New composer run dev command in Laravel

Posted by

kamlesh paul

on

Dec 11, 2024

| 1 min read

Last updated on : Dec 11, 2024

News
393 views

Laravel has recently introduced the composer run dev command to the framework, allowing you to run multiple commands simultaneously:

  • php artisan serve
  • php artisan queue:listen --tries=1
  • php artisan pail
  • npm run dev

All of these commands can now be executed in one go, with color-coded output in the terminal using the concurrently package. This feature provides a convenient way to start the application along with all the essential services you need.

The pull request also includes Tailwind CSS out of the box, enabling you to start using Tailwind immediately without the need to install any starter kit. This is particularly useful for developers who want to experiment or build projects from scratch.

For users of older Laravel versions who wish to utilize this new feature, simply add the following to your composer.json in the scripts section:

composer.json
"dev": [
    "Composer\\Config::disableProcessTimeout",
    "npx concurrently -k -c \"#93c5fd,#c4b5fd,#d4d4d8,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail\" \"npm run dev\" --names=server,queue,logs,vite"
]

This configuration will work the same way as the new composer run dev command introduced in the pull request.

Related Posts

  • Blocking Disposable Emails with the laravel-disposable-email PackageBlocking Disposable Emails with the laravel-disposable-email Package
  • TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!  TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!
  • Tinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHPTinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHP
  • Next-js 15 is Stable and Production-Ready: Key HighlightsNext-js 15 is Stable and Production-Ready: Key Highlights
  • Laravel Made Easy: One Command for PHP, Node.js, and ComposerLaravel Made Easy: One Command for PHP, Node.js, and Composer

Tags

Api(1)Authentication(5)Backup (1)Copy Paste(12)Email(2)Express(1)Firebase(1)Github Action(2)News(8)Push Notification(1)Queue(2)Server(11)Server Action(3)Testing(1)Tips(17)Websocket(1)

Popular Posts

  • TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!  TweakPHP 0.1.0 Beta: A Free and Open-Source Alternative to Tinkerwell Is Here!
  • How to use WebSocket in NextJS App router with Socket.IOHow to use WebSocket in NextJS App router with Socket.IO
  • How to Set Up Queue Jobs in NextJS Using BullMQHow to Set Up Queue Jobs in NextJS Using BullMQ
  • Boost Laravel Performance: Running Octane with FrankenPHP in Production ( Zero downtime)Boost Laravel Performance: Running Octane with FrankenPHP in Production ( Zero downtime)
  • How to Set Up NextJS cron jobs without VercelHow to Set Up NextJS cron jobs without Vercel
  • Mastering Laravel Streamed Responses: Boost Performance with Fast Data DeliveryMastering Laravel Streamed Responses: Boost Performance with Fast Data Delivery
  • Tinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHPTinkerwell Alternative: Free and Open-Source PHP Debugging with TweakPHP
  • Nextjs 14 roles and permissions (RBAC) : Step-by-Step GuideNextjs 14 roles and permissions (RBAC) : Step-by-Step Guide

Get updates directly to your inbox.

Join 500+ developers getting updates on Laravel & Next.js tips. No spam,
unsubscribe anytime.


Share this article:

393 views