PHP Class Learner\Http\Controllers\Auth\SocialController

Inheritance: extends Learner\Http\Controllers\BaseController
Afficher le fichier Open project: RryLee/learner.video

Méthodes publiques

Méthode Description
__construct ( ) Only guest can access this controller.
handleGithubOAuth ( ) : Response Obtain the user information from GitHub.
handleTwitterOAuth ( ) : Response Obtain the user information from GitHub.
redirectToGithub ( ) : Response Redirect the user to the GitHub authentication page.
redirectToTwitter ( ) : Response Redirect the user to the GitHub authentication page.

Méthodes protégées

Méthode Description
createAUser ( ) : User Create a new user.

Private Methods

Méthode Description
findOrCreateUser ( $githubUser ) : User | array Return user if exists; create and return if doesn't

Method Details

__construct() public méthode

Only guest can access this controller.
public __construct ( )

createAUser() protected méthode

Create a new user.
protected createAUser ( ) : User
Résultat Learner\Models\User

handleGithubOAuth() public méthode

Obtain the user information from GitHub.
public handleGithubOAuth ( ) : Response
Résultat Response

handleTwitterOAuth() public méthode

Obtain the user information from GitHub.
public handleTwitterOAuth ( ) : Response
Résultat Response

redirectToGithub() public méthode

Redirect the user to the GitHub authentication page.
public redirectToGithub ( ) : Response
Résultat Response

redirectToTwitter() public méthode

Redirect the user to the GitHub authentication page.
public redirectToTwitter ( ) : Response
Résultat Response