From c4341fb7b13874d713141f24629188cafe777b10 Mon Sep 17 00:00:00 2001 From: Quentin Gabriele Date: Sat, 19 Oct 2024 14:58:42 +0200 Subject: [PATCH] doc --- src/Models/Media.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Models/Media.php b/src/Models/Media.php index d6664c0..8eef538 100644 --- a/src/Models/Media.php +++ b/src/Models/Media.php @@ -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 { @@ -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(