Download the PHP package linearsoft/entrust-cli without Composer
On this page you can find all versions of the php package linearsoft/entrust-cli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download linearsoft/entrust-cli
More information about linearsoft/entrust-cli
Files in linearsoft/entrust-cli
Package entrust-cli
Short Description Provides a console interface to Entrust for Laravel
License GPLv3
Homepage https://github.com/LinearSoft/entrust-cli
Informations about the package entrust-cli
Entrust-Cli
Provides a console interface to Entrust for Laravel
Currently this package only supports Entrust for Laravel 5.
Requirements
You must have Entrust installed and working before attempting to use Entrust-Cli.
Before using Entrust-Cli you must have the Entrust service provider and alias configured.
You must also have the Entrust database tables created.
Visit the Entrust GitHub for more information on installing and configuring Entrust.
Installation
Install the latest version with
Then in your config/app.php
you must add
to your providers
array.
Usage
Entrust-Cli adds the following artisan commands
Command | Action | Parameters | Example |
---|---|---|---|
*:create |
Creates a role/permission | name [display name] [description] | entrust-cli:role:create myrole "My Role" |
*:delete |
Deletes a role/permission | name | entrust-cli:permission:delete perm1 |
*:list |
Lists all roles/permissions | none | entrust-cli:role:list |
permission:attach |
Attaches a permission to a role | permission_name role_name | entrust-cli:permission:attach perm1 myrole |
permission:detach |
Detaches a permission from a role | permission_name role_name | entrust-cli:permission:detach perm1 myrole |
role:info |
Provides detailed role info (perms/users) | role_name | entrust-cli:role:info myrole |
role:attach |
Attaches a role to a user | role_name identity [--attr=] | entrust-cli:role:attach myrole [email protected] |
role:detach |
Detaches a role from a user | role_name identity [--attr=] | entrust-cli:role:detach myrole user2 |
User Identity
Entrust-Cli does not know for certain what attribute your application uses to lookup user records. By default it will check for an email
attribute
and then fail-over to a username
. If your User model does not use either one of these you must manually specify which attribute to search on:
About
Bugs or features requests
Found a problem or would like a feature submit it via GitHub
License
Entrust-Cli is licensed under the GPLv3 License - see the LICENSE
file for details
All versions of entrust-cli with dependencies
zizaco/entrust Version 5.2.x-dev
illuminate/console Version ~5.2
illuminate/database Version ~5.2
illuminate/support Version ~5.2