Auth::attempt() function results always false value in laravel.
Solution:below are the noticable changes .
1. please check whether username and password are getting inside the controller. check the view file
1 |
<input type="text" class="form-control" id="username"> |
in this case name field is missing ,so may be null value be will be in the controller.
2.Password data shoul be in bcrypt format.suppose your password has saved in the db table as “123”, please change to
bcrypt format like “$2y$10$hVu41hqUsV5olqpLZta2aOLLbOExbspxI7ZZSv/uytpB53VEkyAjm”.