Answer the question
In order to leave comments, you need to log in
Why does laravel swear at crud-generator?
https ://github.com/appzcoder/crud-generator/blob/m... the less styles, the less editing, and came across this error:
[Symfony\Component\Console\Exception\RuntimeException]
Too many arguments, expected arguments "command" "name".
- a common error and again a case from the documentation that the example is not working
Command
php artisan crud:generate Posts --fields='title#string; content#text; category#select#options={"technology": "Technology", "tips": "Tips", "health": "Health"}' --view-path=admin --controller-namespace=Admin --route-group=admin --form-helper=html
Answer the question
In order to leave comments, you need to log in
Maybe someone will come across a similar error:
It is possible that in windows single quotes are not read correctly, it should have been like this:
php artisan crud:generate Posts --fields="title#string; content#text;" --view-path=admin --controller-namespace=Admin --route-group=admin --form-helper=html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question