composer require smallruraldog/light-box
php artisan vendor:publish --provider=SmallRuralDog\LightBox\LightBoxServiceProvider
'extensions' => [
'light-box' => [
// Set to `false` if you want to disable this extension
'enable' => true,
]
]
// simple lightbox
$grid->picture()->lightbox();
//gallery
$grid->picture()->gallery();
//zoom effect
$grid->picture()->lightbox(['zooming' => true]);
$grid->picture()->gallery(['zooming' => true]);
//width & height properties
$grid->picture()->lightbox(['width' => 50, 'height' => 50]);
$grid->picture()->gallery(['width' => 50, 'height' => 50]);
当字段为数组时为多图浏览
Licensed under The MIT License (MIT).