This is only table structure. You need to change the USER model (it uses email & password for authentication) as per your requirement.
i suggest reading this https://scotch.io/tutorials/simple-and-easy-laravel-login-authentication
dukejib said:
This is only table structure. You need to change the USER model (it uses email & password for authentication) as per your requirement.
i suggest reading this https://scotch.io/tutorials/simple-and-easy-laravel-login-authentication
Thanks for your response @dukejib! I do know that this is only a migration. However I was more wondering if there were other files other than the User model that I should change. I posted my migration as an example of how my database is structured to give anyone who's reading this an idea of what I am doing, or at least, that was my intention.
So with that in mind, do you know how I would use the out-of-the-box auth system and just modify it to fit this?
From looking around, it seems as though this is really ingrained in Laravel, and uses a lot of classes from the Laravel package, which I hadn't realized. Seeing as how it is bad practice and inefficient to edit those, I am simply going to have to write my own login, which is fine. Shame that it is so un-configurable though. I would love to see increased functionality. Oh well. Can't have everything.
I am going to leave this thread open probably for another day just to see if anyone has any insights into this.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community