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

There doesn't seem to be an easy way to do either of those things. password column name is hardcoded in DatabaseUserProvider (and EloquentUserProvider).

If you don't want to write your own UserProvider, you'll probably be better off just checking credentials manually in AuthController@postLogin and logging user in via \Auth::login or \Auth::loginUsingId method.

0

You could also create a table called users and store all username and password. Then create foreign keys to Students, Teacher, Admin

0

Sign in to participate in this thread!

Eventy

Your banner here too?

LonnyX lonnyx Joined 30 Mar 2015

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.