From 364949e8e3fb9d12264cf0ae8bc677abdacef3db Mon Sep 17 00:00:00 2001 From: tim gavin Date: Wed, 22 Jun 2022 04:39:23 -0400 Subject: [PATCH] Update preparing-your-model.md (#2955) When implementing the `registerMediaConversions()` method, it is not clear that additional models need to be imported. Hopefully this PR makes it a little more clear for users with an IDE that does not automatically import the required models. --- docs/basic-usage/preparing-your-model.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/basic-usage/preparing-your-model.md b/docs/basic-usage/preparing-your-model.md index fbba0af22..91e80f4ed 100644 --- a/docs/basic-usage/preparing-your-model.md +++ b/docs/basic-usage/preparing-your-model.md @@ -23,6 +23,9 @@ The `Collection` component will show a preview thumbnail for items in the collec To generate that thumbnail, you must add a conversion like this one to your model. ```php +use Spatie\Image\Manipulations; +use Spatie\MediaLibrary\MediaCollections\Models\Media; + public function registerMediaConversions(Media $media = null): void { $this