- Verson 1.* for moonshine 2
- Verson 2.* for moonshine 3
- Verson 4.* for moonshine 4
composer require gian_tiaga/moonshine-file-
Install spatie laravel laravel-medialibrary https://spatie.be/docs/laravel-medialibrary
-
Make your models
-
In your resource add
SpatieUppyFile::make('Фото', 'photo')
->multiple()
->countFiles(5)
->image()Yo can set allowed file types
SpatieUppyFile::make('Фото', 'photo')
->allowedFileTypes('video/*')You can use this field in json
