Force Laravel to Ignore Exception

laravel, laravel-4, php

Solution

That can be a namespace problem.

Did you try to put a slash before the exception?

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

Problem

When the below code, PHP should catch the exception and continue execution without throwing any error/exception page. Question: However with Laravel 4, the exception page shows up. Setting `app.debug` to `false` only hides the stack trace. How do you force Laravel to ignore and continue execution? ``` try { SomeOperation(); } catch (SomeException $e) { // do nothing... php will ignore and continue } ```

Original source