I followed the https://segmentfault.com/a/1190000004598315 step-by-step, but the PHP arisan command could not be used
Reply content:
I followed the https://segmentfault.com/a/1190000004598315 step-by-step, but the PHP arisan command could not be used
There are several situations:
There is a problem with the code that must be loaded before the framework runs, such as your service provider, and interrupts when executing optimize
There is a problem with the package updated with composer update
Composer update interrupt, dependency incomplete
Composer Update did not run before artisan Clear-compield caused the old compilation file not to be cleared
Optimize will write compiled.php and Service.json files in the bootstrap/cache/folder, check the folder permissions
But you are using Windows, 5 can be ignored, 4 is the most likely
Several sets of solutions are recommended:
How to clean up a compiled file
Use script-free composer updates and force overwriting of previous compiled content
A little violence.
If you still have a problem, simply delete the vendor directory and Composer.lock, use composer install--no-scripts reinstall, remember to run PHP artisan optimize--force
Execution: Composer install try again
PHP Artisan route:list
Are you sure you set up a route?
Introductory recommendation to learn the basics
http://laravel-china.org/