404labfr / laravel-auth-checker

Laravel Auth Checker allows you to log users authentication, devices authenticated from and lock intrusions.
https://marceau.casals.fr
223 stars 31 forks source link

Problem with migration. #3

Closed w00p closed 7 years ago

w00p commented 7 years ago

Hi,

I had a problem migrating the 2 tables, i had to rename 2017_03_25_124200_create_logins_table.php to 2018_03_25_124200_create_logins_table.php

Devices table should migrate first because of the reference to to foreign in create login table.

MarceauKa commented 7 years ago

Hi! Thank you for your issue. I'll check that :)

MarceauKa commented 7 years ago

The users_table migration is by default to "2014_..." so this package migrations are loaded after and don't cause any problem.

MarceauKa commented 7 years ago

Look at the new version 1.1.0

SiebeVE commented 7 years ago

The problem remains, because the logins table has a foreign key to the devices table while it hasn't been created yet.