You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I tried using generate:resource, and everything worked well up until it tried creating the Controller:
[ErrorException]
file_put_contents(/vagrant/app/Http/Controllers/GearsController.php): failed to open stream: No such file or directory
It should be /vagrant/app/Controllers - not sure where it's getting Http/ from, especially since the rest of the command has the path just fine:
Do you want me to create a Gear model? [yes|no] y
Created: /vagrant/app/Gear.php
Do you want me to create views for this Gear resource? [yes|no] y
Created: /vagrant/resources/views/Gears/index.blade.php
Created: /vagrant/resources/views/Gears/show.blade.php
Created: /vagrant/resources/views/Gears/create.blade.php
Created: /vagrant/resources/views/Gears/edit.blade.php
Do you want me to create a GearsController controller? [yes|no] y
Any ideas why this is happening? I'm using generators version 3, with laravel v4.2.11
The text was updated successfully, but these errors were encountered:
Followup, it also breaks when trying to create the migration:
[ErrorException]
file_put_contents(/vagrant/database/migrations/2014_11_12_143539_create_Gears_table.php): failed to open stream: No such file or directory
Generators version 3 is for the new Laravel 5 which is in development at the moment. If you want to use generators with Laravel 4 you should checkout 2.6.
So I tried using generate:resource, and everything worked well up until it tried creating the Controller:
It should be /vagrant/app/Controllers - not sure where it's getting Http/ from, especially since the rest of the command has the path just fine:
Any ideas why this is happening? I'm using generators version 3, with laravel v4.2.11
The text was updated successfully, but these errors were encountered: