I am new to frameworks please help me out with this. I am trying to create a file in controller using generate. The following is the command
php artisan generate:controller features
it gives me the error
[InvalidArgumentException]
There are no command defined in the "generate" namespace
The generate command is from the JeffreyWay/Laravel-4-Generators package, to install it you have to execute
And then add this line to your
app/config/app.php
in the Service Providers array:After it just execute
And check if you have the following commands available:
Try php artisan controller:make features
The correct command is:
By following the above procedure you might sometimes face this kind of error:
To avoid it be sure to do "composer update" before following the procedure.