rjvim/connect-sentinel-5.4

连接 - 监视器 - OAuth

dev-master 2019-05-06 07:04 UTC

This package is auto-updated.

Last update: 2024-09-06 19:35:28 UTC


README

添加到依赖项

"cartalyst/sentinel": "^2.0",
"google/apiclient": "^2.0"

添加到提供者

Rjvim\Connect\ConnectServiceProvider::class,

添加到外观

'Connect'   => Rjvim\Connect\ConnectFacade::class,

运行:php artisan vendor:publish

向用户表添加更多列

$table->string('name')->nullable();
$table->enum('gender', ['male', 'female', 'others'])->nullable();

通过 Rjvim\Connect\Models\User 扩展 User 模型

添加路由

Connect::google();