N
N
naneri2014-10-10 10:55:36
Laravel
naneri, 2014-10-10 10:55:36

How to solve the problem with the alternative user table in Laravel during authorization?

In general, yesterday I asked a question - about alternative authorization .
But it turned out that everything is much easier - you can not write your own driver, but use the driver from Laravel, just specify the correct column names for it.

//  app/models/user.php
public function getAuthPassword()
  {
      return $this->s_password;
  }

So, the problem is that the authorization passes (if after authorization, I write var_dump(Auth::user()->id), then I will receive the data of the authorized user), but immediately upon redirecting it is reset.
How to solve this problem?
Here is a link to the whole code

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