gzero/social

Zero 社交插件

v3.0.0 2017-04-30 13:30 UTC

README

=== GZERO CMS 社交包

安装

首先通过 Composer 安装此包。编辑你的项目 composer.json 文件以要求 gzero/social。

"require": {
    "gzero/social": "3.*",
},
"minimum-stability" : "stable"

接下来,从终端更新 Composer

composer update
  • 创建数据库架构(记得将环境设置为 dev)
php artisan migrate

配置

将服务提供者添加到 config/app.php 中的平台配置

Gzero\Social\ServiceProvider::class

OAuth 凭据

在服务配置文件中设置给定服务的必需凭据

'google' => [
    'client_id'     => 'your client_id',
    'client_secret' => 'your client_secret',
],

'facebook' => [
    'client_id'     => 'your client_id',
    'client_secret' => 'your client_secret',
],

'twitter' => [
    'client_id'     => 'your client_id',
    'client_secret' => 'your client_secret',
],

点赞按钮凭据

在服务配置文件中仅设置给定服务的 client_id

'facebook' => [
    'client_id'     => 'your client_id',
],