PHP 클래스 App\Http\Controllers\OauthController

상속: extends Laravel\Lumen\Routing\Controller
파일 보기 프로젝트 열기: unicodeveloper/laravel-hackathon-starter

보호된 프로퍼티들

프로퍼티 타입 설명
$auth
$socialite

공개 메소드들

메소드 설명
__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 ) : User Find a user by username or create a new user

비공개 메소드들

메소드 설명
getAuthorizationFirst ( $provider ) : RedirectResponse 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 )

메소드 상세

__construct() 공개 메소드

public __construct ( Laravel\Socialite\Contracts\Factory $socialite, Illuminate\Contracts\Auth\Guard $auth )
$socialite Laravel\Socialite\Contracts\Factory
$auth Illuminate\Contracts\Auth\Guard

authenticate() 공개 메소드

public authenticate ( Illuminate\Http\Request $request, $provider )
$request Illuminate\Http\Request

checkIfUserNeedsUpdating() 공개 메소드

Check if the user's info needs updating
public checkIfUserNeedsUpdating ( $userData, $user )
$userData
$user

execute() 공개 메소드

public execute ( $request, $provider )

findByProviderIdOrCreate() 공개 메소드

Find a user by username or create a new user
public findByProviderIdOrCreate ( $userData, $provider ) : User
$userData
$provider
리턴 app\User

프로퍼티 상세

$auth 보호되어 있는 프로퍼티

protected $auth

$socialite 보호되어 있는 프로퍼티

protected $socialite