hms5232 / laravel-api-socialite-fb-login

〈Laravel Socialite 實作前後端分離的第三方登入 API〉的範例程式碼

Home Page:https://hms5232.medium.com/laravel-socialite-%E5%AF%A6%E4%BD%9C%E5%89%8D%E5%BE%8C%E7%AB%AF%E5%88%86%E9%9B%A2%E7%9A%84%E7%AC%AC%E4%B8%89%E6%96%B9%E7%99%BB%E5%85%A5-api-284ce2819667

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

laravel-api-socialite-fb-login

〈Laravel Socialite 實作前後端分離的第三方登入 API〉的範例程式碼。
使用 Facebook 登入示範在前後端分離的 Laravel API 上怎麼快速實作第三方登入。

需求

以本專案範例來說:

  • PHP 7.3 或以上
  • composer

部署

  1. Clone 或下載程式碼後切換至專案根目錄
  2. cp .env.example .env 然後設定 .env 中的參數,主要有以下幾項需要設定:
    • DB_ 開頭之資料庫相關設定
    • FB_ 開頭之使用 FB 登入相關設定
  3. composer install
  4. php artisan key:generate
  5. php artisan migrate
  6. php artisan serve 來開啟測試用的 server 在 8000 連接埠

參考資料

LICENSE

See LICENSE file.


Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

〈Laravel Socialite 實作前後端分離的第三方登入 API〉的範例程式碼

https://hms5232.medium.com/laravel-socialite-%E5%AF%A6%E4%BD%9C%E5%89%8D%E5%BE%8C%E7%AB%AF%E5%88%86%E9%9B%A2%E7%9A%84%E7%AC%AC%E4%B8%89%E6%96%B9%E7%99%BB%E5%85%A5-api-284ce2819667

License:Apache License 2.0


Languages

Language:PHP 70.1%Language:Blade 28.8%Language:Shell 0.7%Language:Vue 0.4%