gian_tiaga / moonshine-file
Spatie + Uppy file uploader for MoonShine
Installs: 364
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/gian_tiaga/moonshine-file
Requires
- php: ^8.2
Requires (Dev)
- laravel/framework: ^11.10
- moonshine/moonshine: 4.*
- spatie/laravel-medialibrary: ^11.5
Conflicts
- moonshine/moonshine: <3.0
README
Versions
- Verson 1.* for moonshine 2
- Verson 2.* for moonshine 3
- Verson 4.* for moonshine 4
Install
composer require gian_tiaga/moonshine-file
Usage
-
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
