ollieread / multiauth

Laravel multi auth
441 stars 109 forks source link

php artisan multiauth:reminders-table not working #116

Closed andrewboy closed 5 years ago

andrewboy commented 7 years ago

Hi!

If I run that command that I wrote in the title, an exception is thrown with the following message:

[ErrorException]                                                                                                                                             
  file_put_contents(/vagrant/app/database/migrations/2016_08_10_140434_create_password_reminders_table.php): failed to open stream: No such file or directory 

I investigated a little bit this issue and I found that the route is set to $this->laravel['path'].

In this case the plugin wants to create the migration file in the app folder, but the database folder exists in the root of the project folder, so the location is wrong.

You can found the mentioned snippet in createBaseMigration method under Ollieread\Multiauth\Console\RemindersTableCommand class.