-
-
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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