Property | Type | Description | |
---|---|---|---|
$auth | |||
$socialite |
Method | Description | |
---|---|---|
__construct ( Laravel\Socialite\Contracts\Factory $socialite, Illuminate\Contracts\Auth\Guard $auth ) | ||
authenticate ( Illuminate\Http\Request $request, $provider ) | ||
checkIfUserNeedsUpdating ( $userData, $user ) | Check if the user's info needs updating | |
execute ( $request, $provider ) | ||
findByProviderIdOrCreate ( $userData, $provider ) : |
Find a user by username or create a new user |
Method | Description | |
---|---|---|
getAuthorizationFirst ( $provider ) : |
Redirect the user to the Social Media Account authentication page | |
getSocialUser ( string $provider ) : collection | Get Data from Social Media Account | |
isEmailExists ( $email = null ) | ||
isUsernameExists ( $username = null ) |
public __construct ( Laravel\Socialite\Contracts\Factory $socialite, Illuminate\Contracts\Auth\Guard $auth ) | ||
$socialite | Laravel\Socialite\Contracts\Factory | |
$auth | Illuminate\Contracts\Auth\Guard |
public authenticate ( Illuminate\Http\Request $request, $provider ) | ||
$request | Illuminate\Http\Request |
public checkIfUserNeedsUpdating ( $userData, $user ) | ||
$userData | ||
$user |
public findByProviderIdOrCreate ( $userData, $provider ) : |
||
$userData | ||
$provider | ||
return |