I followed segmentfault. coma119004264598315 step by step, but the phparisan command cannot be used.
I followed https://segmentfault.com/a/119004264598315step by step, but the php arisan command cannot be used.
Reply content:
I followed https://segmentfault.com/a/119004264598315step by step, but the php arisan command cannot be used.
There are several situations:
-
There is a problem with the code that must be loaded before your service provider and other frameworks run. it is interrupted when optimize is executed.
-
An error occurred while updating the package using composer update.
-
Updating interrupted in various situations during composer update, with incomplete dependencies
-
Before composer update, artisan clear-compield is not run, so the old compilation file is not cleared.
-
Optimize will write compiled. php and service. json map files in the bootstrap/cache/folder, and check the folder permissions.
However, it seems that you are using windows. you can ignore windows 5, and the four are the most likely.
Recommended solutions:
How to clear compiled files
Use a composer without scripts to update and forcibly overwrite the previous compiled content.
Brute force
If there is still a problem, delete the vendor Directory and composer. lock, use composer install -- no-scripts to reinstall, remember to run php artisan optimize -- force
Execute: composer install and try again
Php artisan route: list
Are you sure you have set the route?
Basic recommendations
Http://laravel-china.org/