Skip to content

Commit

Permalink
Update SpatieMediaLibraryFileUpload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin authored Feb 24, 2022
1 parent 38c5297 commit e124947
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,21 +126,21 @@ public function collection(string | Closure | null $collection): static
return $this;
}

public function getCollection(): string
{
return $this->evaluate($this->collection) ?? 'default';
}

public function conversion(string | Closure | null $conversion): static
{
$this->conversion = $conversion;

return $this;
}

public function getConversion(): string
public function getCollection(): string
{
return $this->evaluate($this->collection) ?? 'default';
}

public function getConversion(): ?string
{
return $this->evaluate($this->conversion) ?? '';
return $this->evaluate($this->conversion);
}

public function mediaName(string | Closure | null $name): static
Expand Down

0 comments on commit e124947

Please sign in to comment.