The 'artisan optimize' command is deprecated

This commit is contained in:
Greg Roach
2017-09-02 21:25:00 +01:00
parent ea6d6d0105
commit 721a7cd3f7
+2 -3
View File
@@ -66,7 +66,7 @@ You can now re-generate the docs yourself (for future updates)
php artisan ide-helper:generate php artisan ide-helper:generate
``` ```
Note: `bootstrap/compiled.php` has to be cleared first, so run `php artisan clear-compiled` before generating (and `php artisan optimize` after). Note: `bootstrap/compiled.php` has to be cleared first, so run `php artisan clear-compiled` before generating.
You can configure your composer.json to do this after each commit: You can configure your composer.json to do this after each commit:
@@ -75,8 +75,7 @@ You can configure your composer.json to do this after each commit:
"post-update-cmd": [ "post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate", "Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate", "php artisan ide-helper:generate",
"php artisan ide-helper:meta", "php artisan ide-helper:meta"
"php artisan optimize"
] ]
}, },
``` ```