Support the ongoing development of Laravel.io →
Configuration Authentication Security
Last updated 1 year ago.
0

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-auth...

0

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-auth...

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?

0

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.