2017 © Pedro Peláez
 

library laravel-permission

Permission handling for Laravel 5.4 and up

image

cdebattista/laravel-permission

Permission handling for Laravel 5.4 and up

  • Thursday, May 17, 2018
  • by cdebattista
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 556 Forks
  • 0 Open issues
  • 77 Versions
  • 0 % Grown

The README.md

, (*1)

Build Status Total Downloads Latest Stable Version License License , (*2)

, (*3)

:star: Star on GitHub — it helps!, (*4)

Table of content

Installation

Composer

composer require cdebattista/laravel-permission, (*5)

Inertia

For now, support only Jetstream with Inertia., (*6)

In local installation and using php artisan serve, change APP_URL=http://127.0.0.1:8000 in .env. Otherwise, you will get an error: Access to XMLHttpRequest at 'http://localhost/users' from origin 'http://127.0.0.1:8000, (*7)

php artisan permission:install inertia, (*8)

npm install && npm run dev, (*9)

php artisan migrate, (*10)

How it works

Inertia

You can customize Actions, Models, Policies and Pages as your wishes., (*11)

PHP

In php code :, (*12)

$user->hasPermissions(['view_user', 'view_group', 'view_permission']);

more details here, (*13)

Protect your routes :, (*14)

Route::group(['permissions' => ['administrator', 'create_user', 'view_user', 'edit_user', 'delete_user']], function (){
    Route::resource('users', Inertia\UserController::class)->except(['show']);
});

more details here, (*15)

Vuejs

in VUE files :, (*16)

this.HasPermissions(['view_user', 'view_group', 'view_permission'])

more details here, (*17)

You can use directive v-can :, (*18)

<div v-can="['view_user', 'view_group', 'view_permission']">...</div>

more details here, (*19)

License

Laravel Permission is open-sourced software licensed under the MIT license., (*20)

The Versions

07/02 2018

v1.x-dev

1.9999999.9999999.9999999-dev https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1 and up

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

17/05 2017

dev-fix-guard-checks

dev-fix-guard-checks https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.4 and up

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

22/02 2017
22/02 2017
20/02 2017
09/02 2017
23/01 2017
19/01 2017
27/12 2016
15/12 2016
26/08 2016
24/07 2016

1.5.1

1.5.1.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

24/07 2016

1.5.0

1.5.0.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

08/05 2016

1.4.0

1.4.0.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

27/02 2016

1.3.4

1.3.4.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

24/02 2016

1.3.3

1.3.3.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

23/02 2016

1.3.2

1.3.2.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

10/01 2016

1.3.1

1.3.1.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

25/12 2015

1.3.0

1.3.0.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

22/12 2015

1.2.1

1.2.1.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

28/10 2015

1.2.0

1.2.0.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

12/10 2015

1.1.0

1.1.0.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

11/10 2015

1.0.2

1.0.2.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

30/09 2015

1.0.1

1.0.1.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

16/09 2015

1.0.0

1.0.0.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie

15/09 2015

0.0.1

0.0.1.0 https://github.com/spatie/laravel-permission

Permission handling for Laravel 5.1

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel acl security permission spatie