public __construct ( mixed $path, Illuminate\Filesystem\Filesystem $filesystem = null ) | ||
$path | mixed | |
$filesystem | Illuminate\Filesystem\Filesystem |
public function __construct($path, Filesystem $filesystem = null)
{
$this->path = (string) $path;
$this->filesystem = $filesystem ?: new Filesystem();
$this->attributes = Collection::make($this->getAttributes());
}