Support the ongoing development of Laravel.io →
Authentication Security Database
Last updated 2 years ago.
0

users you are authenticating does not need to reside in the user table, meaning you can name the user table anything. On Laravel 5.2 and up it even supports multiple tables.

To set a different model to be authenticated, see the config/auth.php you need to set the model class there, if you're using the eloquent driver. Your model must extend Illuminate\Foundation\Auth\User

see this on how to do a multi model auth http://stackoverflow.com/questions/34490600/how-to-use-multi-auth-in-laravel-5-2

0

Sign in to participate in this thread!

Eventy

Your banner here too?

canadain1 canadain1 Joined 13 Jul 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.