jeudi 5 novembre 2020

How does this authentication (condition) work?

$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