webappid/laravel-user

Core simple user management for laravel

5.3.0 2022-10-09 11:32 UTC

README

this package is the core of user management based on laravel.

This package required laravel auth.

Step by step to use :

  1. run php artisan make:auth.
  2. run php artisan migrate.
  3. run composer require webappid/laravel-user.
  4. run php artisan migrate one more time.
  5. run webappid:user:seed to create default data.
  6. run php artisan db:seed --class='WebAppId\User\Seeds\AdminResetPasswordTableSeeder' to reset admin use.
  7. default root / admin email is root@noname.com

Use as route middleware :

add new middleware in $routeMiddleware section in app\Http\Kernel.php

'role' => \WebAppId\User\Middleware\RoleCheck::class, 'permission' => \WebAppId\User\Middleware\PermissionCheck::class,

Usage

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.