$exception->getMessage()], 404); }); App::missing(function ($exception) { if (Request::is('dashboard*') or Request::is('api*')) { return Response::view('errors.404', [ 'pageTitle' => Lang::get('cachet.dashboard.not_found_title'), ], 404); } return Redirect::route('status-page'); }); /* |-------------------------------------------------------------------------- | Maintenance Mode Handler |-------------------------------------------------------------------------- | | The "down" Artisan command gives you the ability to put an application | into maintenance mode. Here, you will define what is displayed back | to the user if maintenance mode is in effect for the application. | */ App::down(function () { return Response::make("Be right back!", 503); }); /* |-------------------------------------------------------------------------- | Require The Filters File |-------------------------------------------------------------------------- | | Next we will load the filters file for the application. This gives us | a nice separate location to store our route and application filter | definitions instead of putting them all in the main routes file. | */ require app_path().'/filters.php'; require app_path().'/view-composers.php'; require app_path().'/helpers.php';