this package is the core of user management based on laravel.
This package required laravel auth.
- run
php artisan make:auth
. - run
php artisan migrate
. - run
composer require webappid/laravel-user
. - run
php artisan migrate
one more time. - run
webappid:user:seed
to create default data. - run
php artisan db:seed --class='WebAppId\User\Seeds\AdminResetPasswordTableSeeder'
to reset admin use. - default root / admin email is root@noname.com
add new middleware in $routeMiddleware
section in app\Http\Kernel.php
'role' => \WebAppId\User\Middleware\RoleCheck::class, 'permission' => \WebAppId\User\Middleware\PermissionCheck::class,
Route::group(['middleware' => ['auth', 'role:admin', 'permission:allaccess']], function () { })
If you have any question about this package, please don't hesitate to drop me an email at dyan.galih@gmail.com
Thanks to everyone to help me build this package.