Hey guys,
I'm following a tutorial and can't seem to run this command, not really sure why as I can't find anything on this problem anywhere else.
root@beta:/var/www/html/test# php artisan make:model Project
[InvalidArgumentException] There are no commands defined in the "make" namespace.
Any ideas?
run php artisan list
to see all available commands, but I think that command is only available in laravel 5, so if you are using laravel 4 you might be out of luck
In laravel 4.2 you can use php artisan to view all the commands , by default laravel 4.2 doen't have command to generate model from CLI.
In laravel 5.0 same command you can use to view all the commands, its only avaiable after 5.0.
If your using laravel 4.2 or less you can use this package to generate models https://github.com/JeffreyWay/Laravel-4-Generators
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community