infuse/auth
最新稳定版本:3.2
Composer 安装命令:
composer require infuse/auth
包简介
Auth module for Infuse Framework
README 文档
README
Auth module for Infuse Framework
Installation
-
Install the package with composer:
composer require infuse/auth -
Add the service to
servicesin your app's configuration:'services' => [ // ... 'auth' => 'Infuse\Auth\Services\Auth' // ... ]
-
Add the migration to your app's configuration:
'modules' => [ 'migrations' => [ // ... 'Auth' ], 'migrationPaths' => [ // ... 'Auth' => 'vendor/infuse/auth/src/migrations' ] ]
-
(optional) Add the console command for helper tasks to
console.commandsin your app's configuration:'console' => [ // ... 'commands' => [ // ... 'Infuse\Auth\Console\ResetPasswordLinkCommand' ] ]
-
(optional) Add the garbage collection scheduled job to
cronin your app's configuration:'cron' => [ // ... [ 'id' => 'auth:garbageCollection', 'class' => 'Infuse\Auth\Jobs\GarbageCollection', 'minute' => 30, 'hour' => 1, 'day' => 1 ] ]
Usage
You can create your own User model located at App\Users\Models\User for futher customization.
统计信息
- 总下载量: 2.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 15
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-03