Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Oct 19, 2024
1 parent 20deb0e commit c4341fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ public function getChildrenConversions(string $name): EloquentCollection
->filter(fn ($conversion) => str_starts_with($conversion->conversion_name, "{$name}."));
}

/**
* Save a conversion and dispatch children conversions
*/
public function replaceConversion(
MediaConversion $conversion,
): MediaConversion {
Expand Down Expand Up @@ -320,6 +323,8 @@ public function replaceConversion(
}

/**
* Store a file as a conversion and dispatch children conversions
*
* @param string|resource|UploadedFile|HttpFile $file
*/
public function addConversion(
Expand Down

0 comments on commit c4341fb

Please sign in to comment.