:package_description

v1.0.10 2017-02-27 12:50 UTC

This package is not auto-updated.

Last update: 2024-09-24 22:20:18 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.