Monday, March 20, 2017

redirect all errors to an specific page in laravel

I have created a laravel project, in a controller file I've used guzzlehttp to send requests and there's private web services API's in that file (controller) .
Now, With every error in frontend it will return that API keys including where it's sending the request.
How can I hide all of these errors and debug infos in frontend and just show something like "Oops, Something went wront!" to website viewers ?



via M. Safari

Advertisement