class ApiController extends Controller (View source)

Traits

AuthorizesRequests
AuthorizesResources
DispatchesJobs
ValidatesRequests

Methods

mixed
getStatusCode()

No description

setStatusCode( mixed $statusCode)

No description

mixed
respondNotFound( string $message)

No description

mixed
respondInternalError( string $message = 'Internal Error')

No description

mixed
respond($data, array $headers = array())

No description

mixed
respondWithError($message)

No description

Details

at line line 18
mixed getStatusCode()

Return Value

mixed

at line line 27
setStatusCode( mixed $statusCode)

Parameters

mixed $statusCode return $this

at line line 39
mixed respondNotFound( string $message)

Parameters

string $message

Return Value

mixed

at line line 49
mixed respondInternalError( string $message = 'Internal Error')

Parameters

string $message

Return Value

mixed

at line line 60
mixed respond($data, array $headers = array())

Parameters

$data
array $headers

Return Value

mixed

at line line 70
mixed respondWithError($message)

Parameters

$message

Return Value

mixed