J
J
jugger32021-10-15 11:48:57
Laravel
jugger3, 2021-10-15 11:48:57

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);
        }


Structure of the UserDeal table
616941f503517407709470.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question