프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 ) : |
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. |
public __construct ( Learner\Repositories\UserRepositoryInterface $users, Learner\Repositories\RoleRepositoryInterface $roles ) : void | ||
$users | Learner\Repositories\UserRepositoryInterface | |
$roles | Learner\Repositories\RoleRepositoryInterface | |
리턴 | void |
protected getCredentials ( Illuminate\Http\Request $request ) : array | ||
$request | Illuminate\Http\Request | |
리턴 | array |
public getLogin ( ) : Illuminate\Http\Response | ||
리턴 | Illuminate\Http\Response |
public getLogout ( ) : Illuminate\Http\Response | ||
리턴 | Illuminate\Http\Response |
public getRegister ( ) : Illuminate\Http\Response | ||
리턴 | Illuminate\Http\Response |
protected loginUsername ( ) : string | ||
리턴 | string |
public postLogin ( Illuminate\Http\Request $request ) : Illuminate\Http\Response | ||
$request | Illuminate\Http\Request | |
리턴 | Illuminate\Http\Response |
public postRegister ( ) : Illuminate\Http\Response | ||
리턴 | Illuminate\Http\Response |
protected RoleRepositoryInterface,Learner\Repositories $roles | ||
리턴 | Learner\Repositories\RoleRepositoryInterface |