michaljurkowski/tg-pass
Composer 安装命令:
composer require michaljurkowski/tg-pass
包简介
:package_description
README 文档
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.
统计信息
- 总下载量: 162
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-01