gian_tiaga/moonshine-file
Spatie + Uppy file uploader for MoonShine
410
14
| Install | |
|---|---|
composer require gian_tiaga/moonshine-file |
|
| Latest Version: | 4.0.0 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Dec 23, 2025 |
| Links: | GitHub · Packagist |
Maintainer: gian_tiaga
Spatie Media + Uppy for upload files and images for Moonshine admin panel
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