| Install | |
|---|---|
composer require gian_tiaga/moonshine-file |
|
| Latest Version: | 4.0.0 |
| PHP: | ^8.2 |
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