Answer the question
In order to leave comments, you need to log in
Why is migration generation not working in Laravel 5?
I'm using Ubuntu 14.04
Installed Composer 1.3.2, Laravel 5.2.45
In the terminal I generate a migration file, I write:
php artisan generate:migration create_users_table --fields="email:string:unique, password:string[60], username:string:unique , remember_token:string:nullable"
Throws an error:
[ErrorException]
file_put_contents(/var/www/html/laravel/quickstart/app/database/migration
s/2017_03_28_124903_create_users_table.php): failed to open stream: No such
file or directory.
For some reason, Artisan by default climbs to create a migration file in the folder
[default: "/var/www/html/dpirmatov/quickstart/app/database/migrations"]
Then I write:
php artisan generate:migration create_users_table --fields="email:string:unique, password:string[60], username:string:unique, remember_token:string:nullable" --path=database/migrations
artisan response:
[Symfony\Component \Console\Exception\CommandNotFoundException]
Command "dump-autoload" is not defined.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question