Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.

About This Episode

Published on Aug 17th, 2017

When an exception is thrown in your app, you can optionally let it bubble up to app/Exceptions/Handler.php. Here, you may type-check the exception to determine the appropriate response to return. While this is certainly useful, over the lifetime of a project, you'll notice that this method grows and grows.

A more object-oriented approach would be to allow the exception to determine how to render itself. And now, in Laravel 5.5, you can do that very thing.

Episodes

    1. EPISODE 3 1:04 Free
    2. EPISODE 4 3:28 Free
    3. EPISODE 5 2:51 Free
    4. EPISODE 6 3:20 Free
    5. EPISODE 8 3:07 Free
    6. EPISODE 9 1:51 Free
    7. EPISODE 10 3:50 Free
    8. EPISODE 13 8:12 Free
    9. EPISODE 14 5:54 Free
    10. EPISODE 15 2:31 Free
    11. EPISODE 16 2:08 Free
    12. EPISODE 18 5:03 Free
    13. EPISODE 19 4:33 Free
    14. EPISODE 20 11:24 Free
Back to Series Button