https://github.com/logisticinfotech/rightsmanagement-module
This is the wrapper of spatie/laravel-permission.
https://github.com/logisticinfotech/rightsmanagement-module
Last synced: 29 days ago
JSON representation
This is the wrapper of spatie/laravel-permission.
- Host: GitHub
- URL: https://github.com/logisticinfotech/rightsmanagement-module
- Owner: logisticinfotech
- License: other
- Created: 2019-10-18T08:03:48.000Z (almost 7 years ago)
- Default Branch: origin/master
- Last Pushed: 2023-01-04T22:56:08.000Z (over 3 years ago)
- Last Synced: 2025-07-31T05:18:12.971Z (12 months ago)
- Language: PHP
- Size: 766 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
php artisan module:update
php artisan migrate
`admins` routes prefix required, works best with `inspania` theme, minimum `bootstrap 4` required
# Config
For Congifuration you can fire
- `php artisan vendor:publish` and select appropriate option which will generate file named `config/rightsmanagement.php` with variables
- You can generate file manually at `config/rightsmanagement.php` here are the list of
```
'RightsManagement',
'routePrefix' => 'admins', // no trailing slash required
'authGuard' => 'admin',
'layoutIncludes' => 'admin.include' // no trailing fullstop required
];
```
# In Your Admin Model
please add `use HasRoles;` to your model
```
use Spatie\Permission\Traits\HasRoles;
class Admin extends Authenticatable
{
use HasRoles;
```
# For Dev of this package
for versioning
replace `X` with next version
`git tag vX.X.X`
`git push origin vX.X.X`