In your config you define what model is your Auth model, by default this is User. The Auth::attempt() function requires an associative array that is column_name => value (A number of things are assumed by using Laravels Auth), using this it fetches the relevant User from the db. It would then take the input password and use the Hash::check() function to check the password matches.
See https://github.com/laravel/framework/blob/4.2/src/Illuminate/Auth/Guard.php#L343
Then follow the validateCredentials() call into the default UserProvider https://github.com/laravel/framework/blob/4.2/src/Illuminate/Auth/EloquentUserProvider.php#L104
Everything you need to know can be found out by having a look through the API documentation as well as the source code on github.
http://laravel.com/api/4.2/ https://github.com/laravel/framework
Thanks for the quick reply!
It all makes a lot more sense now. Now i know where it all comes from. It helps me a lot understanding it :)
thanks kind sir.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community