Laravel 5.2: The "optimize" command is undefined

I am working on laravel 5.2.

When I run the composer and linker installation command, it shows an error:

[InvalidArgumentException] Command "optimize" is not defined. 

Please let me know how to solve this problem.

+5
source share
2 answers

This artisan command is deprecated. Just remove it from the composer.json file.

+7
source

https://laravel.com/docs/5.6/upgrade says:

The previously deprecated optimize Artisan command has been removed. With recent improvements in PHP, including OPcache, the optimize command no longer provides any appropriate performance. So you can remove php artisan optimize from scripts in composer.json file.

+1
source

Source: https://habr.com/ru/post/1268975/


All Articles