Home  >  Article  >  Backend Development  >  About laravel - Error executing php artisan make:model

About laravel - Error executing php artisan make:model

PHP中文网
PHP中文网Original
2017-03-20 16:43:362105browse

Question:

After executing php artisan make:model Article

Command "make:model" is not defined.

and then executing php artisan, I found that there is only one line

 make
  make:migration    Create a new migration file

under the make command line. What should I do?

Solution:

There is a problem when updating dependencies. There are various reasons. It may be that you manually or some network problems cause the update script process to terminate, or it may be a mirroring problem, etc. We use laravel in 7 or 8 sub-projects. This problem occasionally occurs. It is basically caused by improper operations. I have also helped solve it many times
_(:з ∠)_

When solving it, First use composer clearcache to clear the package and warehouse cache, and then use composer update. If it doesn't work, delete the vendor directory and reinstall it.

The latest

related articles under composer update:

About laravel’s php artisan command not working?

Laravel Artisan command

About php artisan make:console SendEmails Why can’t I find it in the list?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn