A user has multiple email addresses and should only be able to login using the email address in the emails table that is marked as is_default. A user can have up to 5 email addresses but only can login with the is_default one.
User Table
id
password
first_name
last_name
created_at
updated_at
Email Table
user_id
email_address
is_default
I'm not sure what version of Laravel you're using, but if you're using +5.5 and the default LoginController class, you should just be able to overwrite the `validateLogin()` method in the AuthenticatesUsers trait within your LoginController. Something like this should work:
```
protected function validateLogin(Request $request)
{
$this->validate($request, [
$this->username() => 'required|email|exists:user_emails,email,is_default,1',
'password' => 'required|string',
]);
}
```
I'll be elated to build you this authentication part on your laravel website, where a users can have multiple email address, but will be able to sign in only with the one with is_default tag.
* Please read here what my customers say about my work -- https://www.freelancer.com/u/mr7ether
* My rate is lower because my profile is new, but I am 10 years experienced
* Typical customer psychology links high price with delivered quality; however price depends more on supply-demand curve, monopoly, distribution chain, purchasing power, etc and less on deliverables
* I am cordially seeking an opportunity to raise my profile reputations. Everybody starts with zero. You have also started a new business, May yours grow by leaps and bounds!
* Lifetime code warranty allows you to get fixed any feature, even if it breaks 25 years later (the code must remain untouched by third-party)
* Interact directly with developer and avoid multi-layered corporate communication
* Pay the full project money at the end, when you are happy with the work
* I'll make unlimited revisions upto your satisfaction
* Fast loading and high ranking code
* Secure code to withstand attacks
* Pixel perfect, responsive and cross browser design; engaging graphics, icons, typography to convert visitors into customers by subconsciously guiding them to take actions (Like, Share, Buy, Subscribe)
* Please contact to see samples
Hi, I have read the description and understand the requirement, I would like to discuss with you more details, please contact me, I am ready to start asap; Thanks
We have gone through the requirements that you have mentioned and we will help you in this.
Message us for further discussion.
Feel Free to contact us.
Thank you!
i have upto 3 years of experience in web development and Saas Apps, working great with laravel , codeigniter , vue , js , jquery , css, html , bootstrap
will be proud of working with you
I am writing to express my interest in acquiring your project. I have 4 years of experience as a web developer and designer. I would really appreciate an opportunity to work with you in this project and your future projects. Additionally, I am extremely detail orientated, highly motivated, strict to deadline and my work professionalism is second to none. Please have a look to my profile where i am showing some of my best work.
Thanks for your kind consideration and I look forward to hearing from you.
Thank for your consideration,
I am professional web and mobile App developer with working experience of 2 years. I am working on modern web technology including API development, eCommerce Development, Customized Web Solutions, content management systems Integration and Customization and worked in programming languages like PHP, Dart/Flutter , JavaScript etc.
I am new here in this freelancer platform that's why i don't have any reviews/ratting yet but once your worked with me i assure you , you will work again with me for such projects even on little bigger level too.
Best Regards