Skip to content

Instantly share code, notes, and snippets.

@robzlabz
Created June 29, 2020 22:46
Show Gist options
  • Save robzlabz/1d6115f22757c02e3bb78b81b9ea2ab8 to your computer and use it in GitHub Desktop.
Save robzlabz/1d6115f22757c02e3bb78b81b9ea2ab8 to your computer and use it in GitHub Desktop.
Laravel HTTP
<?php
$response->body() : string;
$response->json() : array|mixed;
$response->status() : int;
$response->ok() : bool;
$response->successful() : bool;
$response->failed() : bool;
$response->serverError() : bool;
$response->clientError() : bool;
$response->header($header) : string;
$response->headers() : array;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment