2017 © Pedro Peláez
 

library laravel-permission-setup

Setting up permissions

image

rickselby/laravel-permission-setup

Setting up permissions

  • Monday, December 18, 2017
  • by rickselby
  • Repository
  • 1 Watchers
  • 0 Stars
  • 217 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 78 % Grown

The README.md

Initialise Permissions

When using spatie/laravel-permission I have a pattern I always follow; I only use permissions in the code, not roles. Since the permissions will be hard-coded, I want a way of creating the permissions in the database from a list., (*1)

This really, really simple class loads a list of permissions from config/permissions.php and creates them (if they don't already exist)., (*2)

Install the package using composer:, (*3)

``` bash $ composer require rickselby/laravel-permission-setup, (*4)


Then, if using Laravel 5.4, add the service provider to the providers array: ```php // config/app.php 'providers' => [ ... RickSelby\Permission\PermissionServiceProvider::class, ];

You can publish the default permissions config file with, (*5)

php artisan vendor:publish --provider="RickSelby\Permission\PermissionServiceProvider" --tag="config"

Now, you can load and reload the list of permissions with the artisan command:, (*6)

php artisan permission:update

The Versions

18/12 2017

dev-master

9999999-dev https://github.com/rickselby/laravel-permission-setup

Setting up permissions

  Sources   Download

MIT

The Requires

 

laravel permission rickselby

18/12 2017
29/09 2017

v2.0

2.0.0.0 https://github.com/rickselby/laravel-permissions-setup

Setting up permissions

  Sources   Download

MIT

The Requires

 

laravel permission rickselby

17/02 2017

v1.0

1.0.0.0 https://github.com/rickselby/laravel-permissions-setup

Setting up permissions

  Sources   Download

MIT

The Requires

 

laravel permission rickselby