2017 © Pedro Peláez
 

library cinnamon-role

Laravel Role Package

image

mission4/cinnamon-role

Laravel Role Package

  • Tuesday, April 11, 2017
  • by mission-4
  • Repository
  • 3 Watchers
  • 39 Stars
  • 48 Installations
  • Vue
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Cinnamon Role - Easy Role management for Laravel 5

StyleCI Packagist Packagist, (*1)

Cinnamon Role is a simple Role management system built for Laravel 5 with a backend Json Api for easy implementation., (*2)

Feature List:

  • [x] Permissions List
  • [x] Roles list
  • [x] Users list
  • [x] Add Permissions and Roles
  • [x] Connect Roles to Permissions
  • [x] Connect Users to Roles
  • [x] Create Gates for Permissions
  • [x] Add Permissions to the Can and Allows methods
  • [x] Easy Backend UI using ajax with Vue.js 2 components

Installation

Using Composer: ``` bash composer require mission4/cinnamon-role, (*3)

Add the `Rolable` trait to the `User` model.
``` php
use \Mission4\CinnamonRole\Traits\Rolable;

And register your policies in the AuthServiceProvider boot() method. ``` php public function boot() { $this->registerPolicies(); // Register CinnamonRole Permissions Policies CinnamonRole::registerPermissions(); // Don't forget to import the class Mission4\CinnamonRole\CinnamonRole }, (*4)


## Using the Vue Components For the UI Using Laravel Mix. ``` bash # Publish the Vue Components to the resources/assets/js/vendor/cinnamon-role directory php artisan vendor:publish --tag=cinnamon-role

And add the Vue Components to your app.js file and then compile your JavaScript. ``` javascript Vue.component('cinnamon-role-users-table', require('./components/cinnamon-role/CinnamonRoleUsersTable.vue')); Vue.component('cinnamon-role-permissions-table', require('./components/cinnamon-role/CinnamonRolePermissionsTable.vue')); Vue.component('cinnamon-role-roles-table', require('./components/cinnamon-role/CinnamonRoleRolesTable.vue'));, (*5)

Add these to your Blade file that you want to edit roles and permissions on.
``` html
<cinnamon-role-users-table></cinnamon-role-users-table>
<cinnamon-role-permissions-table></cinnamon-role-permissions-table>
<cinnamon-role-roles-table></cinnamon-role-roles-table>

The Versions

11/04 2017

dev-master

9999999-dev

Laravel Role Package

  Sources   Download

MIT

The Requires

 

by Sam Podlogar

12/03 2017

1.0.5

1.0.5.0

Laravel Role Package

  Sources   Download

MIT

The Requires

 

by Sam Podlogar

12/03 2017

dev-analysis-qJbKRa

dev-analysis-qJbKRa

Laravel Role Package

  Sources   Download

MIT

The Requires

 

by Sam Podlogar

05/03 2017

1.0.4

1.0.4.0

Laravel Role Package

  Sources   Download

MIT

The Requires

 

by Sam Podlogar

05/03 2017

1.0.3

1.0.3.0

Laravel Role Package

  Sources   Download

MIT

The Requires

  • illuminate\support 5.4.*

 

by Sam Podlogar

03/03 2017

dev-analysis-XpN9vL

dev-analysis-XpN9vL

Laravel Role Package

  Sources   Download

MIT

03/03 2017

1.0.0

1.0.0.0

Laravel Role Package

  Sources   Download

MIT