2017 © Pedro Peláez
 

library laravel-cms-acl-module

Laravel CMS: ACL Module

image

czim/laravel-cms-acl-module

Laravel CMS: ACL Module

  • Monday, February 12, 2018
  • by czim
  • Repository
  • 2 Watchers
  • 1 Stars
  • 955 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 35 % Grown

The README.md

CMS for Laravel - ACL module

Simple ACL module for the CMS., (*1)

To be used to with the Laravel CMS Core., (*2)

Installation

Add the module class to your cms-modules.php configuration file:, (*3)

``` php 'modules' => [ // ... \Czim\CmsAclModule\AclModule::class, ],, (*4)


Add the service provider to your `cms-modules.php` configuration file: ``` php 'providers' => [ // ... Czim\CmsAclModule\Providers\CmsAclModuleServiceProvider::class, // ... ],

To publish the config:, (*5)

``` bash php artisan vendor:publish, (*6)



## Configuration Available permissions are read from the [core](https://github.com/czim/laravel-cms-core)'s module defined ACL presences. Any custom permission keys may be added to the `cms-acl-module.php` configuration file, under `permissions`: ```php <?php 'permissions' => [ 'example.custom.permission', 'and.another', ],

Without further configuration, these will be presented under the header of 'Miscellaneous' in the permissions list selectable for roles., (*7)

To assign custom permissions, or even permissions provided by modules to a (new) permission group, use the groups configuration array., (*8)

For instance:, (*9)

<?php
    'groups' => [
        [
            // The type must always be 'group'
            'type'        => 'group',
            // The label will be used for the multiselect optgroup
            'label'            => 'Some Label',
            // Translation key to use for a label for the optgroup. If this is set, the label value is ignored. 
            'label_translated' => 'some.translation.key',
            // Permissions should always be a list of available permission slug strings
            'permissions' => [
                'example.custom.permission',
                'models.app-models-post.show',
            ]
        ]
    ],

This would assign two permissions to a new group., (*10)

Any group left without permissions will automatically be hidden, whether it is module defined or not., (*11)

For all configuration options, see the configuration file., (*12)

API Documentation

The documentation for the ACL module API endpoints: https://czim.github.io/laravel-cms-acl-module, (*13)

Contributing

Please see CONTRIBUTING for details., (*14)

Credits

License

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

The Versions

12/02 2018

dev-laravel-5.6

dev-laravel-5.6 https://github.com/czim

Laravel CMS: ACL Module

  Sources   Download

The Requires

  • php >=7.1.3

 

The Development Requires

laravel acl cms

02/09 2017

dev-master

9999999-dev https://github.com/czim

Laravel CMS: ACL Module

  Sources   Download

The Requires

  • php >=5.5.9

 

The Development Requires

laravel acl cms

02/09 2017

dev-laravel-5.5

dev-laravel-5.5 https://github.com/czim

Laravel CMS: ACL Module

  Sources   Download

The Requires

  • php >=7.0.0

 

The Development Requires

laravel acl cms

20/03 2017

0.9.3

0.9.3.0 https://github.com/czim

Laravel CMS: ACL Module

  Sources   Download

The Requires

  • php >=5.5.9

 

The Development Requires

laravel acl cms

21/01 2017

0.9.2

0.9.2.0 https://github.com/czim

Laravel CMS: ACL Module

  Sources   Download

The Requires

  • php >=5.5.9

 

The Development Requires

laravel acl cms

18/12 2016

0.9.1

0.9.1.0 https://github.com/czim

Laravel CMS: ACL Module

  Sources   Download

The Requires

  • php >=5.5.9

 

The Development Requires

laravel acl cms