'array', 'illustrative' => 'boolean', ]; } public function photoUrl(): string { if (! str_starts_with($this->photo, self::PHOTO_DIRECTORY.'/')) { return asset($this->photo); } return route('garment.photo', ['id' => $this->id, 'file' => basename($this->photo)]); } }