Kernel

Kernel interface Kernel (View source) Methods void bootstrap() Bootstrap the application for HTTP requests. Response handle(Request $request) Handle an incoming HTTP request. void terminate(Request $request, Response $response) Perform any final actions for the request lifecycle. Application getApplication() Get the Laravel application instance.

Kernel

Kernel interface Kernel (View source) Methods int handle(InputInterface $input, OutputInterface $output = null) Handle an incoming console command. int call(string $command, array $parameters = array()) Run an Artisan console command by name. int queue(string $command, array $parameters = array()) Queue an Artisan console command by name. array all() Get all of the commands registered with the console. string output() Get the output for the last run command.

JsonResponse::__construct()

__construct(mixed $data = null, int $status = 200, array $headers = array(), int $options) Constructor. Parameters mixed $data int $status array $headers int $options

JsonResponse::withHeaders()

$this withHeaders(array $headers) Add an array of headers to the response. Parameters array $headers Return Value $this

JsonResponse::withException()

$this withException(Exception $e) Set the exception to attach to the response. Parameters Exception $e Return Value $this

JsonResponse::withCookie()

$this withCookie(Cookie|mixed $cookie) Add a cookie to the response. Parameters Cookie|mixed $cookie Return Value $this

JsonResponse::withCallback()

$this withCallback(string|null $callback = null) Sets the JSONP callback. Parameters string|null $callback Return Value $this

JsonResponse::throwResponse()

throwResponse() Throws the response in a HttpResponseException instance. Exceptions HttpResponseException

JsonResponse::status()

int status() Get the status code for the response. Return Value int

JsonResponse::setJsonOptions()

mixed setJsonOptions(int $options) Set the JSON encoding options. Parameters int $options Return Value mixed