Getting Started

Installation

composer require akopean/voyager-media

After updating composer, add the service provider to the providers array in config/app.php

VoyagerMedia\VoyagerMediaServiceProvider::class,

Use

Add this code, where you need show media button

1.param ['image' => field name]
2.param ['false/true' => single/multiple]
3.param [$product->image => model attribute]
@voyagerMediaButton('image', 'false', $product->image)

Add this code to the end section['content']

@voyagerMediaModal()

Use only one media-button for page