laravel->getCachedCompilePath(); $servicesPath = $this->laravel->getCachedServicesPath(); if (file_exists($compiledPath)) { @unlink($compiledPath); } if (file_exists($servicesPath)) { @unlink($servicesPath); } } }