PHP Class Learner\Http\Controllers\Auth\AuthController

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

Protected Properties

Свойство Type Description
$roles Learner\Repositories\RoleRepositoryInterface Role Repository.
$users Learner\Repositories\UserRepositoryInterface User Repository.

Méthodes publiques

Méthode Description
__construct ( Learner\Repositories\UserRepositoryInterface $users, Learner\Repositories\RoleRepositoryInterface $roles ) : void Create a new authentication controller instance.
getLogin ( ) : Illuminate\Http\Response Show the application login form.
getLogout ( ) : Illuminate\Http\Response Log the user out of the application.
getRegister ( ) : Illuminate\Http\Response Show the application register form.
postLogin ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Handle a login request to the application.
postRegister ( ) : Illuminate\Http\Response Handle a registration request for the application.

Méthodes protégées

Méthode Description
create ( array $data ) : User Create a new user instance after a valid registration.
getCredentials ( Illuminate\Http\Request $request ) : array Get the needed authorization credentials from the request.
loginUsername ( ) : string Get the login username to be used by the controller.

Method Details

__construct() public méthode

Create a new authentication controller instance.
public __construct ( Learner\Repositories\UserRepositoryInterface $users, Learner\Repositories\RoleRepositoryInterface $roles ) : void
$users Learner\Repositories\UserRepositoryInterface
$roles Learner\Repositories\RoleRepositoryInterface
Résultat void

create() protected méthode

Create a new user instance after a valid registration.
protected create ( array $data ) : User
$data array
Résultat Learner\Models\User

getCredentials() protected méthode

Get the needed authorization credentials from the request.
protected getCredentials ( Illuminate\Http\Request $request ) : array
$request Illuminate\Http\Request
Résultat array

getLogin() public méthode

Show the application login form.
public getLogin ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

getLogout() public méthode

Log the user out of the application.
public getLogout ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

getRegister() public méthode

Show the application register form.
public getRegister ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

loginUsername() protected méthode

Get the login username to be used by the controller.
protected loginUsername ( ) : string
Résultat string

postLogin() public méthode

Handle a login request to the application.
public postLogin ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
Résultat Illuminate\Http\Response

postRegister() public méthode

Handle a registration request for the application.
public postRegister ( ) : Illuminate\Http\Response
Résultat Illuminate\Http\Response

Property Details

$roles protected_oe property

Role Repository.
protected RoleRepositoryInterface,Learner\Repositories $roles
Résultat Learner\Repositories\RoleRepositoryInterface

$users protected_oe property

User Repository.
protected UserRepositoryInterface,Learner\Repositories $users
Résultat Learner\Repositories\UserRepositoryInterface