files = $files; } /** * Execute the console command. * * @return void * * @throws \RuntimeException */ public function handle() { $path = $this->laravel['config']['view.compiled']; if (! $path) { throw new RuntimeException('View path not found.'); } $this->laravel['view.engine.resolver'] ->resolve('blade') ->forgetCompiledOrNotExpired(); foreach ($this->files->glob("{$path}/*") as $view) { $this->files->delete($view); } $this->components->info('Compiled views cleared successfully.'); } }