Galleries - systeminc/laravel-admin GitHub Wiki

With our panel, you could manipulate with Galleries.

To reach all gallery types:

SLA::gallery()->get()

Get single gallery

SLA::gallery($gallery_key)

Available methods:

images() - Collection of images

url() - All our images and files are stored in storage/app path so we need to generate URL from storage_key. Only tested with the local filesystem (Storage) so feel free to send a review for s3 or any other driver.

foreach(SLA::gallery('foo')->images as $image) {
  echo '<img src="$image->url">';
}