About laravel - Error executing php artisan make:model

PHP中文网
Release: 2023-03-01 06:10:01
Original
2217 people have browsed it

Question:

After executing php artisan make:model Article

Command "make:model" is not defined.
Copy after login

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

 make
  make:migration    Create a new migration file
Copy after login

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?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template