PHP Class App\Http\Controllers\API\PasswordsController

Inheritance: extends app\http\controllers\PasswordsController
Show file Open project: appkr/l5essential

Public Methods

Method Description
__construct ( )

Protected Methods

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

Method Details

__construct() public method

public __construct ( )

respondError() protected method

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

respondSuccess() protected method

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