1. Go to this page and download the library: Download ww-site/filament-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/ */
use WwGallery\FilamentGallery\Forms\Components\MediaPicker;
MediaPicker::make('image')
->label('Изображение категории')
->mediaSourceSlug('category-images')
->imagesOnly();
use WwGallery\FilamentGallery\Tables\Columns\MediaPreviewColumn;
MediaPreviewColumn::make('image')
->label('Изображение')
->mediaSourceSlug('category-images');
use WwGallery\FilamentGallery\Infolists\Components\MediaPreviewEntry;
MediaPreviewEntry::make('image')
->label('Изображение')
->mediaSourceSlug('category-images');