PHP Class App\Api\V1\Controllers\ResetPasswordController

Inheritance: extends App\Http\Controllers\Controller
Show file Open project: francescomalatesta/laravel-api-boilerplate-jwt

Public Methods

Method Description
broker ( ) : Illuminate\Contracts\Auth\PasswordBroker Get the broker to be used during password reset.
resetPassword ( ResetPasswordRequest $request, Tymon\JWTAuth\JWTAuth $JWTAuth )

Protected Methods

Method Description
credentials ( ResetPasswordRequest $request ) : array Get the password reset credentials from the request.
reset ( Illuminate\Contracts\Auth\CanResetPassword $user, string $password ) : void Reset the given user's password.

Method Details

broker() public method

Get the broker to be used during password reset.
public broker ( ) : Illuminate\Contracts\Auth\PasswordBroker
return Illuminate\Contracts\Auth\PasswordBroker

credentials() protected method

Get the password reset credentials from the request.
protected credentials ( ResetPasswordRequest $request ) : array
$request App\Api\V1\Requests\ResetPasswordRequest
return array

reset() protected method

Reset the given user's password.
protected reset ( Illuminate\Contracts\Auth\CanResetPassword $user, string $password ) : void
$user Illuminate\Contracts\Auth\CanResetPassword
$password string
return void

resetPassword() public method

public resetPassword ( ResetPasswordRequest $request, Tymon\JWTAuth\JWTAuth $JWTAuth )
$request App\Api\V1\Requests\ResetPasswordRequest
$JWTAuth Tymon\JWTAuth\JWTAuth