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 DevMarketer.io 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.)
— GET THE CODE BLOCK —
The code to save into Handlers.php file:
— MORE LARAVEL TUTORIALS —
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
— DEVMARKETER INSIDER —
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.
— FOLLOW ME —
Subscribe for New Releases!
Subscribe to DevMarketer Insider
Twitter – http://twitter.com/_jacurtis
(ask me questions!)
— 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 email@example.com
Thanks for all your support!
Tags: Error Messages in Laravel 5.2 and 5.3 for debugging.