whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
opcodesio
/
log-viewer
/
src
/
Upload File:
files >> //home/kckglobal/www/portal/vendor/opcodesio/log-viewer/src/HostCollection.php
<?php namespace Opcodes\LogViewer; use Illuminate\Support\Collection; class HostCollection extends Collection { public static function fromConfig(array $config = []): self { return new static(array_map( fn (array $hostConfig, $identifier) => Host::fromConfig($identifier, $hostConfig), $config, array_keys($config) )); } public function remote(): self { return $this->filter(fn (Host $host) => $host->isRemote()); } public function local(): self { return $this->filter(fn (Host $host) => ! $host->isRemote()); } }
Copyright ©2021 || Defacer Indonesia