Skip to content
Turn your grid into a lightbox & gallery
Branch: master
Clone or download
z-song Merge pull request #6 from jxlwqq/patch-2
add img class option.
Latest commit a19772d Mar 7, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources/assets first commit Sep 12, 2018
src add img class. Mar 7, 2019
LICENSE first commit Sep 12, 2018 Update Mar 7, 2019
composer.json first commit Sep 12, 2018

Turn your grid into a lightbox & gallery

This is an extension to integrates Magnific Popup into laravel-admin.

DEMO lightbox & gallery

Login using admin/admin


composer require laravel-admin-ext/grid-lightbox

php artisan vendor:publish --tag=laravel-admin-grid-lightbox


Open config/admin.php, add configurations that belong to this extension at extensions section.

    'extensions' => [

        'grid-lightbox' => [
            // Set to `false` if you want to disable this extension
            'enable' => true,


Use it in the grid:

// simple lightbox


//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]);

//img class properties
$grid->picture()->lightbox(['class' => 'rounded']);
$grid->picture()->gallery(['class' => ['circle', 'thumbnail']]);


Help keeping the project development going, by donating a little. Thanks in advance.

PayPal Me



Licensed under The MIT License (MIT).

You can’t perform that action at this time.