Add a 404 page (awful, let's get it restyled)

This commit is contained in:
James Brooks
2014-12-20 17:32:30 +00:00
parent 0b2a700049
commit 39441245b3
2 changed files with 12 additions and 0 deletions

View File

@@ -57,6 +57,10 @@ API::error(function (\Illuminate\Database\Eloquent\ModelNotFoundException $excep
return Response::make(['error' => $exception->getMessage()], 404);
});
App::missing(function($exception) {
return Response::view('errors.404', array(), 404);
});
/*
|--------------------------------------------------------------------------
| Maintenance Mode Handler