Level 3
For registration use
bcrypt($your_password)// encrypt password for users
Then use
Auth::attempt(['username'=>$username,'password'=>$password]);
//Laravel automatically Hash check password for logins if you use the Auth::attempt(), and make sure your password column in your db is named password else this will not work
2 likes