Laravel Developers, You Should Not Ignore This New php artisan dev Command
Laravel has released version 13.16.0 with a developer-focused update that every Laravel developer should know about:
the new php artisan dev command. This update is not only about one new command; it improves how developers
run and manage local Laravel development environments.
At Redn Technologies, we regularly follow Laravel updates because they directly affect how modern websites, ERP systems, CRM software, booking portals, and custom business applications are developed and maintained.
Why Laravel Developers Should Read This Update
If you work with Laravel projects, you already know that local development often requires multiple commands running together. You may need to run the Laravel server, queue worker, log viewer, and Vite development server at the same time.
Earlier, many Laravel projects used composer run dev for this purpose. With Laravel 13.16.0, Laravel now introduces
a cleaner way to handle this using:
php artisan dev
This command helps developers run multiple development processes together from one place, making the workflow simpler and more organized.
What Is New in Laravel 13.16.0?
Laravel 13.16.0 includes several useful improvements for developers. The major updates include:
- New
php artisan devcommand - Better enum handling with
whenFilledEnum() withCookies()support for all response types- New array-based maintenance mode driver
- Enum support in broadcast event names
- JSON Schema improvements
- Multiple bug fixes and internal improvements
You can read the original Laravel News update here: Laravel 13.16.0 release article.
What Is the New php artisan dev Command?
The new php artisan dev command allows developers to run common development processes together.
In a Laravel project, this may include:
- Laravel development server
- Queue worker
- Log monitoring
- Vite development server
Instead of managing all of these separately, developers can now use a single Artisan command.
php artisan dev
This makes Laravel development faster, cleaner, and easier for teams.
Why This Command Is Important for Modern Laravel Projects
Modern Laravel applications are no longer limited to simple websites. Many projects now include real-time notifications, background jobs, payment gateways, APIs, admin panels, and frontend build tools.
For example, if your Laravel application uses Laravel Reverb or Stripe webhook listener, you can register additional development
commands using Laravel's DevCommands class.
use Illuminate\Foundation\Console\DevCommands;
DevCommands::artisan('reverb:start');
DevCommands::register('stripe listen --forward-to ' . config('app.url'));
This is very helpful for Laravel projects that need WebSockets, real-time communication, payment gateway testing, and queue-based background processing.
If you are planning to build a custom Laravel-based system, you can explore our software development services and website development services.
Better Request Handling with whenFilledEnum()
Laravel 13.16.0 also introduces a new request helper called whenFilledEnum().
This method is useful when working with PHP backed enums.
Earlier, developers had to manually check request values and convert them into enum cases. Now, Laravel makes this cleaner.
$request->whenFilledEnum('status', Status::class, function (Status $status) use ($query): void {
$query->where('status', $status);
});
This helps reduce unnecessary code and makes request handling more reliable.
withCookies() Now Works on All Response Types
Another useful improvement is that withCookies() now works with all response types, including JSON responses.
This is especially useful for API-based Laravel applications.
return response()->json($data)->withCookies([
$cookieA,
$cookieB,
$cookieC,
]);
This improvement makes it easier to attach multiple cookies to API responses without writing repetitive code.
New Array Maintenance Mode Driver
Laravel 13.16.0 adds a new array-based maintenance mode driver. This is mainly useful for parallel testing. It helps avoid problems that can happen with file-based maintenance mode or cache mocking during automated tests.
For Laravel teams working with automated testing pipelines, this is a practical improvement.
Enum Support in Broadcast Events
Laravel events can now return enums from the broadcastAs() method.
This helps keep broadcast event names consistent between backend and frontend applications.
This is useful for real-time Laravel applications using broadcasting, WebSockets, or typed frontend SDKs.
JSON Schema Improvements
Laravel 13.16.0 also improves JSON Schema support by adding anyOf support.
It also includes safer deserialization to prevent uncontrolled reference expansion.
These improvements help make Laravel applications more stable and secure when working with structured JSON data.
Should You Upgrade to Laravel 13.16.0?
If you are already using Laravel 13, this update is worth considering. However, developers should upgrade to Laravel 13.16.1
or the latest patch version because Laravel 13.16.1 includes a fix related to the new artisan dev command.
You can also check the official Laravel documentation here: Laravel Documentation.
Final Thoughts
Laravel 13.16.0 is a useful update for developers who want a cleaner local development workflow.
The new php artisan dev command can save time, reduce confusion, and make Laravel project setup more professional.
For businesses, these improvements mean Laravel applications can be developed and maintained more efficiently. For developers, it means less manual setup and a smoother daily workflow.
At Redn Technologies, we build secure, scalable, and modern Laravel-based websites, ERP systems, CRM platforms, booking systems, and custom business applications. If you are planning to develop a Laravel project, visit our contact page to discuss your requirement.