/** * 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); } }
/** * Get the path to the cached "compiled.php" file. * * @return string * @static */ public static function getCachedCompilePath() { return \Illuminate\Foundation\Application::getCachedCompilePath(); }