Better Error Messages in Laravel for Easier Debugging [Laravel Quick Tips]

Installing better error messages is easy in Laravel 5.2 or 5.3. We will install the Whoops package, which was the same package that handled errors in Laravel 4, but was later taken out in Laravel 5.

This video will show you how to install this back in. It requires a basic composer install and then you can add a block of code and be ready to start making errors!

Once you install the project, you need to go into your AppExceptionsHandler.php file and add this block of code your file.
(The version will be online in a few days, so use this link in the meantime. It is the same code, just without the detailed explanation.)


The code to save into Handlers.php file:


If you liked this video, you might like other content on this channel. We have other Laravel Quick Tips and also an EXTREMELY DETAILED series on how to build a blog using Laravel 5.2


Subscribe to DevMarketer Insider – A weekly (once a week) email newsletter to fans that want to know everything that is happening with DevMarketer, including announcements and articles not published on this channel. No spam ever, I promise, unsubscribe anytime.


Subscribe for New Releases!

Subscribe to DevMarketer Insider

Twitter –
(ask me questions!)


Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Email me

Thanks for all your support!

Tags: Error Messages in Laravel 5.2 and 5.3 for debugging.



Do NOT follow this link or you will be banned from the site!