PHP code example of yurizoom / moonshine-media-manager
1. Go to this page and download the library: Download yurizoom/moonshine-media-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yurizoom / moonshine-media-manager example snippets
use YuriZoom\MoonShineMediaManager\Fields\MediaManagerPicker;
// Single image
MediaManagerPicker::make('Image', 'image')
->allowedTypes(['image']),
// Multiple selection
MediaManagerPicker::make('Gallery', 'images')
->multiple()
->allowedTypes(['image']),