🖼️Media

you can use Media::class to build a file input like this

Media::make('name');

this class works with vue ViltMedia.vue

it has some more methods for setting options

->max(int)
->multi(bool)
->type(string) // 'image', 'file'

you can use a media lib on update "1.0.14" by use this method

->type('lib')

I will gave you access to media lib and you can select any image [working on single image only for now], or get image for URL as option

Last updated