Skip to content

Instantly share code, notes, and snippets.

@ansezz
Created February 19, 2018 11:50
Show Gist options
  • Save ansezz/a48a17d1afcfd75e57e91de57d0b9cd1 to your computer and use it in GitHub Desktop.
Save ansezz/a48a17d1afcfd75e57e91de57d0b9cd1 to your computer and use it in GitHub Desktop.
Clear Laravel Application
#!/usr/bin/env bash
echo '*** Clear Laravel Application ***'
echo '** Remove the compiled class file **'
php artisan clear-compiled
echo '** Flush expired password reset tokens **'
php artisan auth:clear-resets
echo '** Flush the application cache **'
php artisan cache:clear
echo '** Remove the configuration cache file **'
php artisan config:clear
echo '** Remove the route cache file **'
php artisan route:clear
echo '** Clear all compiled view files **'
php artisan view:clear
echo '** composer dump autoload **'
composer dump-autoload
echo '* Done *'
@ansezz
Copy link
Author

ansezz commented Feb 19, 2018

Run

bash clear.sh
#or
./clear.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment