links() as $link => $target) { if (! file_exists($link) || ! is_link($link)) { continue; } $this->laravel->make('files')->delete($link); $this->components->info("The [$link] link has been deleted."); } } /** * Get the symbolic links that are configured for the application. * * @return array */ protected function links() { return $this->laravel['config']['filesystems.links'] ?? [public_path('storage') => storage_path('app/public')]; } }