dewsign / gallery-repeater
A gallery repeater block for [Dewsign's Nova Repeater Blocks](https://github.com/dewsign/nova-repeater-blocks) to output a collection of images
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:boilerplate
Requires
- php: >=7.0.0
- dewsign/nova-repeater-blocks: ^1.1
- laravel/framework: >=5.0.0
Requires (Dev)
- squizlabs/php_codesniffer: >=3.1
This package is auto-updated.
Last update: 2024-12-07 21:38:40 UTC
README
A gallery repeater block for Dewsign's Nova Repeater Blocks to output a collection of images
Installation & Usage
composer require dewsign/gallery-repeater
php artisan migrate
Within your repeater types add the Gallery
public function types(Request $request)
{
return [
...
Dewsign\GalleryRepeater\Nova\Gallery::class,
];
}
Styles
You can create multiple gallery and item styles by adding new templates to the /views/vendor/gallery-repeater/galleries
and /views/vendor/gallery-repeater/items
resource folders. The system will fallback to the default style if a view is not found.
Image Procesing
The config provides an easy way to customise the Image Processor. Create a new class with a compatible get
method which can return the processed image url. Each Item template can have a unique image processor. Some common template names are included but they all render the default template (typically sufficient when combined with the Image Processor).