From 9c541b91ee648622f1cdda14e2d69f634047448f Mon Sep 17 00:00:00 2001 From: wychoong <67364036+wychoong@users.noreply.github.com> Date: Tue, 24 Sep 2024 10:51:43 +0800 Subject: [PATCH] doc: add remark for custom model definition --- packages/core/config/media.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/core/config/media.php b/packages/core/config/media.php index d2d0814963..13a1dd29cc 100644 --- a/packages/core/config/media.php +++ b/packages/core/config/media.php @@ -4,6 +4,19 @@ return [ + /* + |-------------------------------------------------------------------------- + | Media Definition + |-------------------------------------------------------------------------- + | + | Specify which media definition should be used when generating media. + | + | note: if extended Lunar's model, you should update the key, + | or default definition will be used + | + | example: App\Models\Product::class => CustomMediaDefinitions::class, + | + */ 'definitions' => [ Lunar\Models\Asset::class => StandardMediaDefinitions::class, Lunar\Models\Brand::class => StandardMediaDefinitions::class,