clear-compiled
clear-compiled copied to clipboard
clear-compiled standalone Laravel command
Standalone clear-compiled command for Laravel 5
Installation
- Copy
clear-compiledinto your Laravel base directory (alongsideartisan) - Replace instances of
php artisan clear-compiledwith simplyphp clear-compiledin yourcomposer.json
Why
The current Laravel artisan command relies on being able to bootstrap the framework to run the command. If your providers has changed, it may not be able to bootstrap Laravel and the command will fail with an exception PHP Fatal error: Class ".../.../*ServiceProvider" not found. This standalone clear-compiled command fixes that. :-)