Search code examples
phplaravelartisan-serve

Can i run multiple command with artisan serve laravel?


Is it possible to run some other arrtisan command when we run php artisan serve . at the same time ? Is there any way to do that?


Solution

  • You can run multiple commands separated by a semi-colon.

    For example:

    php artisan view:clear; php artisan route:clear; php artisan cache:clear; php artisan config:clear 
    

    Would that help?