Property | Type | Description | |
---|---|---|---|
$statusCode |
Method | Description | |
---|---|---|
getStatusCode ( ) : integer | ||
respondBadMethod ( string $message = 'Bad Method!' ) : mixed | ||
respondCreated ( $location = null ) : mixed | ||
respondForbidden ( string $message = 'Forbidden!' ) : mixed | ||
respondInternal ( string $message = 'Internal Server Error!' ) : mixed | ||
respondMethodNotAllowed ( string $message = 'Method Not Allowed!' ) : mixed | ||
respondNotFound ( string $message = 'Not Found!' ) : mixed | ||
respondSuccess ( $message = 'Success' ) : mixed | ||
respondUnprocessable ( $message ) : mixed | ||
respondWithCollection ( |
||
respondWithItem ( $data, League\Fractal\TransformerAbstract $transformer = null ) : mixed | ||
respondWithPagination ( Illuminate\Pagination\AbstractPaginator $paginator, League\Fractal\TransformerAbstract $transformer = null ) : mixed | ||
setStatusCode ( integer $statusCode ) |
Method | Description | |
---|---|---|
getTransformer ( League\Fractal\TransformerAbstract $transformer = null ) : |
get transformer |
public respondBadMethod ( string $message = 'Bad Method!' ) : mixed | ||
$message | string | |
return | mixed |
public respondCreated ( $location = null ) : mixed | ||
$location | ||
return | mixed |
public respondForbidden ( string $message = 'Forbidden!' ) : mixed | ||
$message | string | |
return | mixed |
public respondInternal ( string $message = 'Internal Server Error!' ) : mixed | ||
$message | string | |
return | mixed |
public respondMethodNotAllowed ( string $message = 'Method Not Allowed!' ) : mixed | ||
$message | string | |
return | mixed |
public respondNotFound ( string $message = 'Not Found!' ) : mixed | ||
$message | string | |
return | mixed |
public respondSuccess ( $message = 'Success' ) : mixed | ||
$message | ||
return | mixed |
public respondUnprocessable ( $message ) : mixed | ||
$message | ||
return | mixed |
public respondWithCollection ( |
||
$data | ||
$transformer | League\Fractal\TransformerAbstract | |
return | mixed |
public respondWithItem ( $data, League\Fractal\TransformerAbstract $transformer = null ) : mixed | ||
$data | ||
$transformer | League\Fractal\TransformerAbstract | |
return | mixed |
public respondWithPagination ( Illuminate\Pagination\AbstractPaginator $paginator, League\Fractal\TransformerAbstract $transformer = null ) : mixed | ||
$paginator | Illuminate\Pagination\AbstractPaginator | |
$transformer | League\Fractal\TransformerAbstract | |
return | mixed |