Skip to content

Laravel Spatie merupakan sebuah package yang bertujuan untuk mengelolah role permission ketika ada satu pengguna atau lebih sehingga dapat dengan mudah di gunakan oleh multi user

Notifications You must be signed in to change notification settings

alirfanyasin/Laravel-Spatie

Repository files navigation

Laravel Spatie

Configuration

You can install the package via composer

 composer require spatie/laravel-permission

The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

'providers' => [
    // ...
    Spatie\Permission\PermissionServiceProvider::class,
];

You should publish the migration and the config/permission.php config file with:

php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"

Clear your config cache. This package requires access to the permission config. Generally it's bad practice to do config-caching in a development environment. If you've been caching configurations locally, clear your config cache with either of these commands:

php artisan optimize:clear

#or

 php artisan config:clear

Run the migrations: After the config and migration have been published and configured, you can create the tables for this package by running:

php artisan migrate

Reference

Laravel Spatie (https://spatie.be/)

Author

Irfan Yasin

About

Laravel Spatie merupakan sebuah package yang bertujuan untuk mengelolah role permission ketika ada satu pengguna atau lebih sehingga dapat dengan mudah di gunakan oleh multi user

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages