Skip to content

Instantly share code, notes, and snippets.

@jaygaha
Created March 7, 2024 04:07
Show Gist options
  • Save jaygaha/310dd1e250e269a3f2ce5ce1fbb096dd to your computer and use it in GitHub Desktop.
Save jaygaha/310dd1e250e269a3f2ce5ce1fbb096dd to your computer and use it in GitHub Desktop.
Using a single command, clear the Laravel caches

Clear Laravel caches using single command

To remove all Laravel caches, use a single artisan command, which saves you a lot of typing.

Instead of performing these individual commands,

$ php artisan cache:clear
$ php artisan config:clear
$ php artisan route:clear

Simply execute this command.

$ php artisan otimize:clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment