Jenderal92

3

Dec 24th, 2020 (edited)
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. use Illuminate\Support\Facades\Http;
  2.  
  3. $response = Http::post('url', [
  4. 'name' => 'Blog-Gan',
  5. ]);
  6.  
  7. echo $response['foo'];
  8.  
  9. $response->body()
  10. $response->json()
  11. $response->status()
  12. $response->ok()
  13. $response->successful() (>= 200 && < 300)
  14. $response->serverError()
  15. $response->clientError()
Add Comment
Please, Sign In to add comment