path = $path; } public function root(): string { return Storage::path($this->storagePath()); } public function publicUrl(): string { return MediaLibrary::instance()->findFiles($this->path)[0]->publicUrl; } public function get(): string { return MediaLibrary::instance()->get($this->path); } }