Skip to content

Commit

Permalink
Merge pull request #3722 from djl997/patch-1
Browse files Browse the repository at this point in the history
Add undocumented `storeConversionsOnDisk()` function
  • Loading branch information
timvandijck authored Nov 8, 2024
2 parents 1c476bb + e113a1a commit a4c097d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/converting-images/defining-conversions.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,19 @@ $media = $yourModel->addMedia($pathToImage)->toMediaCollection('other collection
$media->getUrl('thumb') // returns ''
```

## Using a specific disk
You can ensure that conversions added to a collection are automatically added to a certain disk.

```php
public function registerMediaCollections(): void
{
$this
->addMediaCollection('big-files')
->useDisk('s3')
->storeConversionsOnDisk('public');
}
```

## Queuing conversions

By default, a conversion will be added to the connection and queue that you've [specified in the configuration](/docs/laravel-medialibrary/v11/installation-setup). If you want your image to be created directly (and not on a queue) use `nonQueued` on a conversion.
Expand Down

0 comments on commit a4c097d

Please sign in to comment.