Skip to content

Custom permission manager base on spatie laravel-permission

License

Notifications You must be signed in to change notification settings

thotam/thotam-permission

Repository files navigation

Very short description of the package

Latest Version on Packagist Build Status Quality Score Total Downloads

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation

You can install the package via composer:

composer require thotam/thotam-permission

Usage

Public ThotamPermissionServiceProvider

php artisan vendor:publish --provider="Thotam\ThotamPermission\ThotamPermissionServiceProvider"

Clear your config cache with either of these commands

 php artisan optimize:clear
 # or
 php artisan config:clear

Edit Thotam\ThotamHr\Models\HR Models:

implements Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
add Traits Illuminate\Foundation\Auth\Access\Authorizable;
add Traits Spatie\Permission\Traits\HasRoles;
add protected $guard_name = 'web';

Next, you should migrate your database:

php artisan migrate

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email thanhtamtqno1@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

About

Custom permission manager base on spatie laravel-permission

Resources

License

Stars

Watchers

Forks

Packages

No packages published