tudosm
4 months ago
745
2
Laravel

Send the user back if an error thrown

Posted 4 months ago by tudosm

Hi all,

Would anyone be able to help me with error handling process.

How can I send the user back or to a specific page if an error was thrown (any kind of error in controller).

Fo example sometimes I have students with degree level set sometimes not and instead of blowing up my app I want to safely sent the user back to home page. What would be the best case except checking if user has a degree level in controller ...etc

thank you very much !

Please sign in or create an account to participate in this conversation.