Skip to content

Commit

Permalink
doc: add remark for custom model definition
Browse files Browse the repository at this point in the history
  • Loading branch information
wychoong authored Sep 24, 2024
1 parent 4aad66d commit 9c541b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/config/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9c541b9

Please sign in to comment.