Download the PHP package cubekit/laracan without Composer
On this page you can find all versions of the php package cubekit/laracan. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cubekit/laracan
More information about cubekit/laracan
Files in cubekit/laracan
Download cubekit/laracan
More information about cubekit/laracan
Files in cubekit/laracan
Vendor cubekit
Package laracan
Short Description Easy define abilities of the current user.
License
Package laracan
Short Description Easy define abilities of the current user.
License
Keywords laravelpermissions
Please rate this library. Is it a good library?
Informations about the package laracan
laracan
Installation
- Require the package with composer:
composer require cubekit/laracan
-
Add provider to your
config/app.php
: - Publish config:
php artisan vendor:publish --provider="Cubekit\Laracan\LaracanServiceProvider"
- Add the
Ability
class to theapp
folder and implement theCubekit\Laracan\AbilityContract
Note: the default config assumes that the
Ability
class is placed in theapp
folder. You are free to change it and place the class where would you want.
Usage
-
Define abilities
-
Check ability in a request
-
Check ability in a view
- Or you can use the
can
function directly to force IDE understand this code
License
MIT
All versions of laracan with dependencies
PHP Build Version
Package Version
The package cubekit/laracan contains the following files
Loading the files please wait ....