mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
718 B
718 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can make the Http client throw exceptions to terminate execution on any received errors | 1451526356521693187 | weekly-thread-2021-42 | pascalbaljet |
|
2021-10-22T12:30:26+00:00 | you-can-make-the-http-client-throw-exceptions-to-terminate-execution-on-any-received-errors |
💡 By default, the @laravelphp HTTP client doesn't throw exceptions on client and server errors.
However, you can make it do that by using the 'throw' method, and this method is chainable 🔥
Documentation: https://laravel.com/docs/8.x/http-client#throwing-exceptions
#Laravel #PHP #webdev #webdevelopment