A Laravel Nova field for displaying and updating a Spatie Media Library model.
File
field for generic typesInstead of specifying the media collection via the toMediaCollection
method, instead you can just pass the collection in as the second argument to make
, such as:
File::make('Field Label', 'collection_name')
Images
field