7 months ago

Custom Artisan Command to execute multiple commands

Posted 7 months ago by SunnyBoy

I know, it might sound weird as this can be done easily using batch file, but just curious... 😯😈đŸŠčđŸ»â€â™‚ïž Wondering if there is a way to execute the following, using custom artisan command.

E.g. Run this command

php artisan all:clear

To execute these

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

Please sign in or create an account to participate in this conversation.