PHP 클래스 Learner\Http\Controllers\Auth\AuthController

상속: extends Learner\Http\Controllers\BaseController
파일 보기 프로젝트 열기: RryLee/learner.video

보호된 프로퍼티들

프로퍼티 타입 설명
$roles Learner\Repositories\RoleRepositoryInterface Role Repository.
$users Learner\Repositories\UserRepositoryInterface User Repository.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

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
리턴 void

create() 보호된 메소드

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

getCredentials() 보호된 메소드

Get the needed authorization credentials from the request.
protected getCredentials ( Illuminate\Http\Request $request ) : array
$request Illuminate\Http\Request
리턴 array

getLogin() 공개 메소드

Show the application login form.
public getLogin ( ) : Illuminate\Http\Response
리턴 Illuminate\Http\Response

getLogout() 공개 메소드

Log the user out of the application.
public getLogout ( ) : Illuminate\Http\Response
리턴 Illuminate\Http\Response

getRegister() 공개 메소드

Show the application register form.
public getRegister ( ) : Illuminate\Http\Response
리턴 Illuminate\Http\Response

loginUsername() 보호된 메소드

Get the login username to be used by the controller.
protected loginUsername ( ) : string
리턴 string

postLogin() 공개 메소드

Handle a login request to the application.
public postLogin ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
리턴 Illuminate\Http\Response

postRegister() 공개 메소드

Handle a registration request for the application.
public postRegister ( ) : Illuminate\Http\Response
리턴 Illuminate\Http\Response

프로퍼티 상세

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

Role Repository.
protected RoleRepositoryInterface,Learner\Repositories $roles
리턴 Learner\Repositories\RoleRepositoryInterface

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

User Repository.
protected UserRepositoryInterface,Learner\Repositories $users
리턴 Learner\Repositories\UserRepositoryInterface