I am trying to display custom views on errors. I have already modified the code in global.php as below:
App::error(function(Exception $exception, $code)
{
Log::error($exception);
return Response::view('error', $code);
});
But I am getting the error Error in exception handler: Illegal offset type in isset or empty in /my/server/path/vendor/laravel/framework/src/Illuminate/View/Factory.php:122
The code in Factory.php on line 122 is:
if (isset($this->aliases[$view])) $view = $this->aliases[$view];
What can I do to solve this issue?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community