Package Data | |
---|---|
Maintainer Username: | IftekherSunny |
Maintainer Contact: | iftekhersunny@hotmail.com (Iftekher Sunny) |
Package Create Date: | 2015-07-16 |
Package Last Update: | 2015-07-16 |
Home Page: | https://packagist.org/packages/sun/laravel-auth |
Language: | CSS |
License: | MIT |
Last Refreshed: | 2024-12-18 03:04:48 |
Package Statistics | |
---|---|
Total Downloads: | 44 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 11 |
Total Watchers: | 4 |
Total Forks: | 1 |
Total Open Issues: | 0 |
The Sun Auth package helps you to protect your application from Unauthorized user.
In order to install Sun Auth, just add
"sun/laravel-auth": "1.*"
to your composer.json. Then run composer install or composer update.
Then in your config/app.php add
Sun\Auth\AuthServiceProvider::class,
in the providers array.
In the config/session.php 'expire_on_close' set to true.
'expire_on_close' => true,
You need three extra column in your users table for this package.
$table->string('tempPassword', 60);
$table->boolean('active');
$table->string('code', 32);
add this 3 lines of code in your users migration file. Then, run
php artisan migrate:refresh
Then publish Sun Auth's assets with
php artisan vendor:publish
This command will publish all of the assets, views and config files.
You can also change Sun Auth default configuration. In the config/SunAuth.php setup your application name, url, favicon link, User model namespace.
return [
'app' => [
'name' => 'My Awesome App',
'url' => 'http://localhost:8000',
'favicon-url' => 'http://myawesomeapp.com/favicon.png'
],
'user-model-namespace' => 'App\User',
'redirect-after-login' => '/'
];
This package is licensed under the MIT License