According to Laravel 4 docs I can throw a 404 with a custom response:
App::abort(404, 'My Message');
I can then handle all of my 404s with a custom page:
App::missing(function($exception)
{
return Response::view('errors.missing', array(), 404);
});
How can I pass 'My Message' through to the view in the same way that the generic Laravel error page does.
Thanks!
$exception->getMessage()line. Thanks for your help.