P
P
part_os2019-03-07 03:18:34
Laravel
part_os, 2019-03-07 03:18:34

How to add extra validation to laravel 5.7 authentication?

hello, tell me, is there authentication done through "make: auth", there is a table AccountUsers, where to add a check for authentication for the presence of an entry in this table?
I tried to add to the public function authenticate () but he didn’t even come here.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-03-07
@part_os

tried adding to public function authenticate()
What is authenticate()? Why should “he” (who?) go there?
First, we read the authentication doc .
Then there are two options:
1. quickcode - redefine validateLogin in the controller , adding any additional checks;
2. normal code - the same dock, section "Adding Custom User Providers".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question