Ejemplo n.º 1
0
        return Response::json(["url" => $url]);
    } else {
        return Redirect::to($url);
    }
});
/*
|--------------------------------------------------------------------------
| 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 osu_error(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() . '/start/osu.php';
require app_path() . '/html_macros.php';
Ejemplo n.º 2
0
 /**
  * Get the error view for the code given.
  *
  * @return View
  */
 public function getError($code = 404)
 {
     return osu_error($code);
 }