Package Data | |
---|---|
Maintainer Username: | revolution |
Maintainer Contact: | kawaxbiz@gmail.com (kawax) |
Package Create Date: | 2017-09-13 |
Package Last Update: | 2024-10-02 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-21 03:00:21 |
Package Statistics | |
---|---|
Total Downloads: | 91,986 |
Monthly Downloads: | 1,772 |
Daily Downloads: | 78 |
Total Stars: | 13 |
Total Watchers: | 3 |
Total Forks: | 5 |
Total Open Issues: | 0 |
https://login.amazon.com/
composer require revolution/socialite-amazon
'amazon' => [
'client_id' => env('AMAZON_LOGIN_ID'),
'client_secret' => env('AMAZON_LOGIN_SECRET'),
'redirect' => env('AMAZON_LOGIN_REDIRECT'),
],
AMAZON_LOGIN_ID=
AMAZON_LOGIN_SECRET=
AMAZON_LOGIN_REDIRECT=
routes/web.php
Route::get('/', 'AmazonController@index');
Route::get('callback', 'AmazonController@callback');
AmazonController
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Laravel\Socialite\Facades\Socialite;
class AmazonController extends Controller
{
public function index()
{
return Socialite::driver('amazon')->redirect();
}
public function callback()
{
$user = Socialite::driver('amazon')->user();
dd($user);
}
}
MIT Copyright (c) 2017 kawax