A
A
Alexander Ivanov2018-02-02 20:38:41
Laravel
Alexander Ivanov, 2018-02-02 20:38:41

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

How can I fix it and why does it happen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2018-02-02
@cimonlebedev

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 question

Ask a Question

731 491 924 answers to any question