Force Laravel ignore exception

When the code below, PHP should catch the exception and continue execution without throwing the error / exception page.

Question: However, with Laravel 4, an exception page appears. Setting app.debug to false only hides the stack trace. How to make Laravel ignore and continue execution?

  try { SomeOperation(); } catch (SomeException $e) { // do nothing... php will ignore and continue } 
+7
source share
1 answer

This could be a namespace problem.

Did you try to put a slash before the exception?

 catch(\Exception $e) { Log::error($e->getMessage()); } 
+7
source

All Articles