$maxAttempts
$maxAttempts : integer
API login request
login(string $login, string $password, boolean $remember, \Illuminate\Http\Request|null $request = null) : mixed
Try to log in and return an appropriate response
| string | $login | Username or email |
| string | $password | |
| boolean | $remember | |
| \Illuminate\Http\Request|null | $request |
createFailedLoginMessage(\App\User|null $user) : string
Return an error message about why the login failed.
| \App\User|null | $user |
sendLockoutResponse(integer $seconds) : mixed
The return value of login() for when the user has been forbidden from attempting to log in.
| integer | $seconds | Time in seconds for how long the user has to wait before they can log in again. |
_rules(\Illuminate\Support\Collection $parameters, \Illuminate\Validation\Validator $validator = null) : array
Returns validation rules for the request parameters. Should be used by abstract classes and should always concatenate result with parent implementation
| \Illuminate\Support\Collection | $parameters | |
| \Illuminate\Validation\Validator | $validator |
doResolve( $name, \Illuminate\Support\Collection $parameters) : \App\Api\Response\Response|mixed
This function is called only when all validation passed.
Should return a Response.
| $name | ||
| \Illuminate\Support\Collection | $parameters |