$user = User::where('email', $request->email)->first();
if (!$user || !Hash::check($request->password, $user->password)) {
return response([
'message' => ['Credenitials do no match']],404);
}
Can someone make me understand the if block ?
Aucun commentaire:
Enregistrer un commentaire