Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMax Smith
Courses Plus Student 3,973 PointsProblem with php artisan in console
vagrant@homestead:~/Sites/laravel-basics$ php artisan controller:make MyersController
When I run the command to make a controller, I receive the following error:
[InvalidArgumentException]
There are no commands defined in the "controller" namespace.
Is this due to me running laravel 5? Bit confused as to why I am getting this error
2 Answers
Mike Costa
Courses Plus Student 26,362 PointsI'm not too familiar with laravel 5, but I remember reading somewhere that they changed the command for it.
- Laravel 4: php artisan controller:make MyersController
- Laravel 5: php artisan make:controller MyersController
Anthony c
20,907 Pointscopy past this:
php artisan route:list
Roger Rainer S. Braun
23,616 Pointsthat's what I was looking for. Thanks
Max Smith
Courses Plus Student 3,973 PointsMax Smith
Courses Plus Student 3,973 PointsThanks a lot Mike!