Package Data | |
---|---|
Maintainer Username: | ksungcaya |
Maintainer Contact: | ksungcaya@gmail.com (Kenneth Sungcaya) |
Package Create Date: | 2014-12-05 |
Package Last Update: | 2015-03-24 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:01:40 |
Package Statistics | |
---|---|
Total Downloads: | 159 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 4 |
Total Open Issues: | 0 |
#PHPass Laravel
A PHPass integration to Laravel. This package overrides the default Eloquent Auth Driver and Hashing of Laravel and uses the PHPass password hashing and checking methods.
Install package through Composer.
"require": {
"ksungcaya/phpass": "~1.0"
}
Then run composer update
$ composer update
Update app/config/app.php
and include a reference to this package's service provider in the providers array.
'providers' => [
'Ksungcaya\Phpass\PhpassServiceProvider'
]
Next is change the driver
value to phpass
in app/config/auth.php
to let Laravel use the PHPass authentication methods.
Now that PHPass is installed in Laravel, you can now use the normal Auth
and Hash
methods.
Auth::attemp(array(
'email' => $email,
'password' => $password
)
);
Hash::make('secret');
Hash::check('secret', $hashedPassword);
Please refer to Laravel documentation on Security to know more about Authentication and Hash methods.