An elegant way to manage the identity access management for the Laravel framework
saibal-roy/laravel-iam is a Laravel package for an elegant way to manage the identity access management for the laravel framework.
It currently has 12 GitHub stars and 14 downloads on Packagist (latest version 1.0.6).
Install it with composer require saibal-roy/laravel-iam.
Discover more Laravel packages by saibal-roy
or browse all Laravel packages to compare alternatives.
Last updated
An elegant way to manage the identity access management for the Laravel framework. An approach being taken with the following points in mind:
Via Composer
composer require saibal-roy/laravel-iam
Create Authentication scaffolding: For Laravel version < 5.8
php artisan make:auth
For Laravel version 6.x
composer require laravel/ui "^1.0" --dev
php artisan ui bootstrap --auth
For Laravel version 7.x
composer require laravel/ui
php artisan ui bootstrap --auth
Artisan
php artisan migrate
php artisan laravel-iam:setup-root # to setup the root user
php artisan laravel-iam:publish --force # for each new package update for all publishable contents
Default Credentials and Dashboard
Username : [email protected]
Password : secret
User : {domain}/iam or localhost:8000/iam (locally)
Artisan commands
# for each new package update for all publishable contents
php artisan laravel-iam:publish --force
# can also use it to reset the root user credentials
php artisan laravel-iam:setup-root
Config constants that can be modified via .env
# /*
# |--------------------------------------------------------------------------
# | LaravelIAM Identity configurations
# |--------------------------------------------------------------------------
# |
# | This configuration options determines the identity table that will
# | be used to store Laravel IAM's data. In addition,
# | you may set any custom options as needed.
# |
# */
'identity_table' => env('LARAVELIAM_TABLE', 'users'),
'identity_pk' => env('LARAVELIAM_TBL_PK_COLUMN', 'email'),
'identity_name' => env('LARAVELIAM_TBL_NAME_COLUMN', 'name'),
'identity_password' => env('LARAVELIAM_TBL_PWD_COLUMN', 'password'),
# /*
# |--------------------------------------------------------------------------
# | LaravelIAM Root User values
# |--------------------------------------------------------------------------
# |
# | This configuration options determines the root user credentials. In addition,
# | you may set any custom options as needed.
# |
# */
'sudo_user_name' => 'sudo',
'sudo_user_pk' => '[email protected]',
'sudo_password' => 'secret'
Get the LarvelIam User wrapper to access all the roles and permissions of spatie package.
app('laraveliam')->identity()
Check the current user is a allowed user for viewing LaravelIam Dashboard.
app('laraveliam')->iam()
Please see the changelog for more information on what has changed recently.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
MIT license. Please see the license file for more information.