Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rakeshsoni18/36da7c4b190e935f46906a0dbeb4558f to your computer and use it in GitHub Desktop.

Select an option

Save rakeshsoni18/36da7c4b190e935f46906a0dbeb4558f to your computer and use it in GitHub Desktop.
Argument 1 passed to Illuminate\Auth\Guard::login() must implement interface Illuminate\Auth\UserInterface, null given open:
in the create() method in the LoginController you must return the $user that worked for me
protected function create(array $data)
{
$user = User::create([
'username' => $data['username'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
return $user;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment