Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslkingsley committed Aug 30, 2018
1 parent 6af997e commit 5f39295
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
This field is designed to be used with the [media library package from Spatie](https://github.com/spatie/laravel-medialibrary). It currently only supports single file uploading. Take a look at the example usage below:

```php
use Kingsley\MediaLibraryImage\MediaLibraryImage;
use Kingsley\MediaLibraryField\MediaLibraryField;

MediaLibraryImage::make('Avatar')
MediaLibraryField::make('Avatar')
->usingConversion('thumb')
->preservingOriginal()
->toMediaCollection('avatar')
Expand Down

0 comments on commit 5f39295

Please sign in to comment.