Skip to content

tofikhidayatxyz/laravel-user

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel-User

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%