clear-compiled
clear-compiled copied to clipboard
clear-compiled standalone Laravel command
Standalone clear-compiled
command for Laravel 5
Installation
- Copy
clear-compiled
into your Laravel base directory (alongsideartisan
) - Replace instances of
php artisan clear-compiled
with simplyphp clear-compiled
in 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. :-)