Skip to content

Installation

Requirements

VersionPHPLaravelOrchid
2.x8.1/8.2/8.310.x14.x
2.x8.2/8.311.x^14.21

Installation

Install the package with Composer

Terminal window
composer require czernika/orchid-image-components

Publish assets

Terminal window
php artisan vendor:publish --provider="Czernika\OrchidImages\OrchidImagesServiceProvider"

This will copy the compiled JavaScript and CSS file into the public/vendor/orchid-images directory. You need to register them in Orchid’s platform.php configuration file.

'resource' => [
'stylesheets' => [
'/vendor/orchid-images/css/image.css',
// If you're using the lightbox component
'/vendor/orchid-images/css/lightbox.css',
],
'scripts' => [
// If you're using the lightbox component
'/vendor/orchid-images/js/lightbox.js',
// If you need a carousel
'/vendor/orchid-images/js/carousel.js',
],
],