Hi @muadzrosli , you should use the "render" method to print something on the screen to the user. You should use the "report" method when you want to save the error to your DB or even email someone in customer support that a customer was trying to place an order and it didn't go through, etc. "report" method is used to either send emails(report) to let people know about the issue. Let me know if this answers the question.
Praise the lord! My prayer has been answered 😎🙌
Hi sir. In the bootstrap/app.php file, in the exception part, why it use ->report(...) not ->render(...) method?
Hi @muadzrosli , you should use the "render" method to print something on the screen to the user. You should use the "report" method when you want to save the error to your DB or even email someone in customer support that a customer was trying to place an order and it didn't go through, etc. "report" method is used to either send emails(report) to let people know about the issue. Let me know if this answers the question.
@@TalksOnWeb understood. I was wondering because you used render() method in try catch in controller before refactor to global handler.