if ('production' == App::environment()) { return Site::notfound(); } }); App::missing(function ($exception) { if ('production' == App::environment()) { return Site::notfound(); } }); /* |-------------------------------------------------------------------------- | Initialize Pochika |-------------------------------------------------------------------------- | */ Pochika::init(); /* |-------------------------------------------------------------------------- | 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 maintenace mode is in effect for this application. | */ App::down(function () { return Response::make("Be right back!", 503); }); /* |--------------------------------------------------------------------------