laravel 5 Authentication always returns false
I have tried everything, I really don't know where I am going wrong but everytime I log in, it returns false. Here is the method to store users in the db: public function store(CreateUserRequest $request) { $user = new User(); $password = str_random(10); $password_hash = bcrypt($password); $new_user = $user->create([ 'first_name'=>$request->input('first_name'), 'last_name'=>$request->input('last_name'), 'email'=>$request->input('email'), 'fone_number'=>$request->input('fone'), 'password'=>$password_hash ]); $new_user->permissions()->create(UserPermission::$default); //send email to the user Ma
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.