A two-factor authentication package for Laravel >= 8
\Illuminate\Support\Manager
. If you want to use this package with Laravel 5, 6 or 7 you will need to use version 1 or 2 of this package.MichaelDzjap\TwoFactorAuth\Database\Factories\TwoFactorAuthFactory
for model MichaelDzjap\TwoFactorAuth\Models\TwoFactorAuth
MichaelDzjap\TwoFactorAuth\TwoFactorAuth
should now be imported as MichaelDzjap\TwoFactorAuth\Models\TwoFactorAuth
insteadUse the user model defined in the config file in the package. Until now this wasn't actually enforced and using a custom user model in the config (i.e. anything else than \App\User
) would result in type errors and incorrect db querying behaviour. Unfortunately this means we lose type hinting for function arguments for users...
Added support for Laravel 7.*
User
model if you wish. Instead of specifying properties of the User
model in the config file you now actually specify the model that should be used. This defaults to \App\User::class
. This is somewhat of a breaking change in that you will have to modify your published config file. See the updated config file for reference.