PHP Class App\Http\Controllers\PasswordsController

Inheritance: extends Controller
显示文件 Open project: appkr/l5essential Class Usage Examples

Public Methods

Method Description
__construct ( ) Create new password controller instance.
getRemind ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Display the form to request a password reset link.
getReset ( null $token = null ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Display the password reset view for the given token.
postRemind ( Illuminate\Http\Request $request ) Send a reset link to the given user.
postReset ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector Reset the given user's password.

Protected Methods

Method Description
respondError ( $message, integer $statusCode = 400 ) : Illuminate\Http\RedirectResponse Make an error response.
respondSuccess ( $message ) : Illuminate\Http\RedirectResponse Make a success response.

Method Details

__construct() public method

Create new password controller instance.
public __construct ( )

getRemind() public method

Display the form to request a password reset link.
public getRemind ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
return Illuminate\Contracts\View\Factory | Illuminate\View\View

getReset() public method

Display the password reset view for the given token.
public getReset ( null $token = null ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$token null
return Illuminate\Contracts\View\Factory | Illuminate\View\View

postRemind() public method

Send a reset link to the given user.
public postRemind ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

postReset() public method

Reset the given user's password.
public postReset ( Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector
$request Illuminate\Http\Request
return Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

respondError() protected method

Make an error response.
protected respondError ( $message, integer $statusCode = 400 ) : Illuminate\Http\RedirectResponse
$message
$statusCode integer
return Illuminate\Http\RedirectResponse

respondSuccess() protected method

Make a success response.
protected respondSuccess ( $message ) : Illuminate\Http\RedirectResponse
$message
return Illuminate\Http\RedirectResponse