I am installing this Nova package: https://novapackages.com/packages/classic-o/nova-media-library and am having trouble figuring out where to put this block of code:
Add field to the resource:
use ClassicO\NovaMediaLibrary\MediaLibrary;
class Post extends Resource
{
...
public function fields(Request $request)
{
return [
...
MediaLibrary::make('Image'),
...
];
}
...
}
I've looked around, but am very new to Laravel, so I'm just a little confused. I understand that it is a field, so I've looked here: https://nova.laravel.com/docs/1.0/resources/fields.html#place-field, but don't really understand the location where these can be registered.
I appreciate any insight or context here. Thank you!