Свойство | Type | Description | |
---|---|---|---|
$statusCode |
Méthode | 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 ) |
Méthode | Description | |
---|---|---|
getTransformer ( League\Fractal\TransformerAbstract $transformer = null ) : |
get transformer |
public respondBadMethod ( string $message = 'Bad Method!' ) : mixed | ||
$message | string | |
Résultat | mixed |
public respondCreated ( $location = null ) : mixed | ||
$location | ||
Résultat | mixed |
public respondForbidden ( string $message = 'Forbidden!' ) : mixed | ||
$message | string | |
Résultat | mixed |
public respondInternal ( string $message = 'Internal Server Error!' ) : mixed | ||
$message | string | |
Résultat | mixed |
public respondMethodNotAllowed ( string $message = 'Method Not Allowed!' ) : mixed | ||
$message | string | |
Résultat | mixed |
public respondNotFound ( string $message = 'Not Found!' ) : mixed | ||
$message | string | |
Résultat | mixed |
public respondSuccess ( $message = 'Success' ) : mixed | ||
$message | ||
Résultat | mixed |
public respondUnprocessable ( $message ) : mixed | ||
$message | ||
Résultat | mixed |
public respondWithCollection ( |
||
$data | ||
$transformer | League\Fractal\TransformerAbstract | |
Résultat | mixed |
public respondWithItem ( $data, League\Fractal\TransformerAbstract $transformer = null ) : mixed | ||
$data | ||
$transformer | League\Fractal\TransformerAbstract | |
Résultat | mixed |
public respondWithPagination ( Illuminate\Pagination\AbstractPaginator $paginator, League\Fractal\TransformerAbstract $transformer = null ) : mixed | ||
$paginator | Illuminate\Pagination\AbstractPaginator | |
$transformer | League\Fractal\TransformerAbstract | |
Résultat | mixed |