Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.