/**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     Pochika::clearCache();
     /*
     $dir = Renderer::getCacheDir();
     if (file_exists($dir)) {
         $this->rrmdir($dir);
     }
     mkdir($dir, 0777);
     chmod($dir, 0777);
     */
 }
Beispiel #2
0
    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);
});
/*
|--------------------------------------------------------------------------