michaljurkowski / tg-pass
:package_description
Installs: 162
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/michaljurkowski/tg-pass
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.