PHP code example of tjmpromos / sortable-gallery
1. Go to this page and download the library: Download tjmpromos/sortable-gallery 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/ */
tjmpromos / sortable-gallery example snippets
use Tjmpromos\SortableGallery\SortableGalleryPlugin;
class AdminPanelProvider extends PanelProvider
{
ublic function panel(Panel $panel): Panel
{
return $panel
->default()
->id('admin')
->path('admin')
//... other panel config
->plugins([
SortableGalleryPlugin::make(),
]);
}
}
bash
php artisan migrate
bash
php artisan vendor:publish --tag=sortable-gallery-migrations
bash
php artisan vendor:publish --tag=sortable-gallery-config
bash
php artisan vendor:publish --tag=sortable-gallery-views