chrisjk123/laravel-social 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

chrisjk123/laravel-social

最新稳定版本:v1.0.0

Composer 安装命令:

composer require chrisjk123/laravel-social

包简介

README 文档

README

Version MIT Licensed GitHub Tests Action Status

This package serves as a quick, helpful wrapper around Laravel Socialite.

NOTE: all OAuth authentication logins made by Laravel Socialite are supported.

Installation

You can install the package via composer:

composer require chrisjk123/laravel-social

You can optionally publish the config file with:

php artisan vendor:publish --provider="Chriscreates\Social\Providers\SocialServiceProvider" --tag="social-config"

Be sure to update config\services.php following Laravel Socialite's documentation.

<?php
  
return [
    // as an example:
    'google' => [
	    'client_id' => env('GOOGLE_CLIENT_ID'),
	    'client_secret' => env('GOOGLE_CLIENT_SECRET'),
	    'redirect' => env('GOOGLE_REDIRECT'),
    ],
    
];

Make sure your use Illuminate\Foundation\Auth\User as Authenticatable; model is passwordless i.e. the password field is nullable.

Usage

To login with a given provider, simply pass in the provider name and have the user visit the route:

route('auth.provider.callback',  ['provider'  =>  'google'])

Customization

The auth validation and creation process may be customized via "Action" classes. Be sure to review this repository's source code and read up on the Laravel Fortify docs as an example.

Contracts: Chriscreates\Social\Contracts\SocialCreateAuthContract Chriscreates\Social\Contracts\SocialFindAuthContract

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email christopherjk123@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-19