michaljurkowski / tg-pass
:package_description
v1.0.10
2017-02-27 12:50 UTC
Requires
- php: ~5.5|~7.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3
README
Install
Via Composer
$ composer require michaljurkowski/tg-pass
Add ServiceProvider to config/app
.
MichalJurkowski\TgPass\TgPassServiceProvider::class,
Usage
Use php artisan vendor:publish
in config/tg_pass
uncomment or add your own roles and permissions
in database/seeds/DatabaseSeeder.php add:
$this->call(MichalJurkowski\TgPass\database\seeds\PassRolesTableSeeder::class);
$this->call(MichalJurkowski\TgPass\database\seeds\PassUsersTableSeeder::class);
$this->call(MichalJurkowski\TgPass\database\seeds\PassResourcesTableSeeder::class);
$this->call(MichalJurkowski\TgPass\database\seeds\PassUserRolesTableSeeder::class);
$this->call(MichalJurkowski\TgPass\database\seeds\PassPermissionsTableSeeder::class);
in user model use trait
use MichalJurkowski\TgPass\Engine\Models\Traits\PassUserTrait;
class User
{
use PassUserTrait;
composer dump-autoload
then php artisan migrate
and php artisan db:seed
Security
If you discover any security related issues, please email jurkowskimichal86@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.