Example #1
0
 /**
  * Clear the cached Laravel bootstrapping files.
  *
  * @return void
  */
 protected static function clearCompiled()
 {
     $laravel = new Application(getcwd());
     if (file_exists($compiledPath = $laravel->getCachedCompilePath())) {
         @unlink($compiledPath);
     }
     if (file_exists($servicesPath = $laravel->getCachedServicesPath())) {
         @unlink($servicesPath);
     }
 }
Example #2
0
 /**
  * Get the path to the cached "compiled.php" file.
  *
  * @return string 
  * @static 
  */
 public static function getCachedCompilePath()
 {
     return \Illuminate\Foundation\Application::getCachedCompilePath();
 }