mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
486 B
486 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Create renderable exceptions | 1461703839388626946 | weekly-thread-2021-46 | Philo01 |
|
2021-11-19T14:32:07+00:00 | create-renderable-exceptions |
Laravel Tip: You can customize how your exceptions are rendered by adding a 'render' method to your exception.
For example, this allows you to return JSON instead of a Blade view when the request expects JSON.