Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use Illuminate\Support\Facades\Http;
- $response = Http::post('url', [
- 'name' => 'Blog-Gan',
- ]);
- echo $response['foo'];
- $response->body()
- $response->json()
- $response->status()
- $response->ok()
- $response->successful() (>= 200 && < 300)
- $response->serverError()
- $response->clientError()
Add Comment
Please, Sign In to add comment