Package for user authorization managament
- Session module
- Users module
- Profile module
- Groups module
- Roles module
Begin by installing this package through Composer. Edit your project's composer.json
file to require martinsdeee/xauth
.
{
"require": {
"martinsdeee/xlayout": "dev-master",
"way/form": "dev-master",
"martinsdeee/xauth": "dev-master"
}
}
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider. Open app/config/app.php
, and add a new item to the providers array.
'Martinsdeee\Xauth\XauthServiceProvider'
Migrate database
php artisan migrate --package="martinsdeee/xauth"
Configuration:
php artisan config:publish martinsdeee/xauth
Config User model app/models/User.php
use Martinsdeee\Xauth\User as xUser;
class User extends xUser {
}