/** * @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); } }