rjvim / connect-sentinel
连接 - 监视器 - OAuth
dev-master
2017-06-21 12:49 UTC
Requires
- php: >=5.4.0
- illuminate/config: 5.*
- illuminate/database: 5.*
- illuminate/support: 5.*
This package is auto-updated.
Last update: 2024-09-15 19:06:22 UTC
README
添加到依赖项
"cartalyst/sentinel": "^2.0",
"google/apiclient": "1.0.*@beta",
添加到供应商
Rjvim\Connect\ConnectServiceProvider::class,
添加到外观
'Connect' => Rjvim\Connect\ConnectFacade::class,
运行: php artisan vendor:publish
向用户表添加更多列
$table->string('name')->nullable();
$table->text('description')->nullable();
$table->enum('gender', ['male', 'female', 'others'])->nullable();
$table->date('birthday')->nullable();
$table->text('photo')->nullable();
使用 Rjvim\Connect\Models\User 扩展 User 模型
添加路由
Connect::google();