Skip to content

Commit

Permalink
readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
crumb1e committed Aug 9, 2019
1 parent 72b81a2 commit 6b5cb57
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,21 @@ return Storage::disk('cloudinary')->url([
],
])
```

## Using the CloudinaryFile Field

Simply use the `CloudinaryFile` field in your Resource's fields instead of the standard Nova `File` field. This component extends the default File field so you can use it with all the same options as the standard field.

```php
use Silvanite\NovaFieldCloudinary\Fields\CloudinaryFile;

public function fields(Request $request)
{
return [
...
CloudinaryFile::make('Document'),
]
}
```

This field sets the disk in use to `Cloudinary` and ensures the media is stored in the database field with the correct file extension.

0 comments on commit 6b5cb57

Please sign in to comment.