Answer the question
In order to leave comments, you need to log in
Why doesn't authorization work with the new table?
I have two databases Users (which is basic) and UserDeal.
When I get the user from the Users table and authorize him, everything works. But this doesn't work with the UserDeal table, why is that?
Authorization code:
$pass = ($request['password']);
$user = UserDeal::where(])->first();
if ($user) {
Auth::login($user);
return response()->json($user, 200);
} else {
return response()->json('user not found', 420);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question