Property | Type | Description | |
---|---|---|---|
$roles | Learner\Repositories\RoleRepositoryInterface | Role Repository. | |
$users | Learner\Repositories\UserRepositoryInterface | User Repository. |
Method | 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. |
Method | Description | |
---|---|---|
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 | |
return | void |
protected getCredentials ( Illuminate\Http\Request $request ) : array | ||
$request | Illuminate\Http\Request | |
return | array |
public getLogin ( ) : Illuminate\Http\Response | ||
return | Illuminate\Http\Response |
public getLogout ( ) : Illuminate\Http\Response | ||
return | Illuminate\Http\Response |
public getRegister ( ) : Illuminate\Http\Response | ||
return | Illuminate\Http\Response |
protected loginUsername ( ) : string | ||
return | string |
public postLogin ( Illuminate\Http\Request $request ) : Illuminate\Http\Response | ||
$request | Illuminate\Http\Request | |
return | Illuminate\Http\Response |
public postRegister ( ) : Illuminate\Http\Response | ||
return | Illuminate\Http\Response |
protected RoleRepositoryInterface,Learner\Repositories $roles | ||
return | Learner\Repositories\RoleRepositoryInterface |