laravel-webauthn
laravel-webauthn copied to clipboard
Dynamic model used instead of forcing to use User
Any possibility to dynamically change default auth model from User to another model since Laravel support dynamic auth model?
e.g :
In my case, I am using Staffs
(not Users) table which has staff_id
(not user_id) as the primary key.
I did not test it, but I guess you can do it.
This package is not tied to the User
model.
You'll just have to adapt the migration script for you, and use Staffs
as model provider in config/auth.php
config file. Note that it must implement Illuminate\Contracts\Auth\Access\Authorizable
which is a Laravel constraint.