1. Go to this page and download the library: Download vis/artur_image_storage_l5 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 Vis\ImageStorage\Gallery;
use Vis\ImageStorage\Image;
use Vis\ImageStorage\Tag;
use Vis\ImageStorage\VideoGallery;
use Vis\ImageStorage\Video;
use Vis\ImageStorage\Documents;
public function getSlug()
public function scopeOrderId(Builder $query, $order = "desc")
public function scopeActive(Builder $query)
public function scopeFilterByActivity(Builder $query, array $activity = [])
public function scopeSlug(Builder $query, $slug = '')
public function scopeFilterByTitle(Builder $query, $title = '')
public function scopeFilterByDate(Builder $query, array $date = [])
public function scopeFilterByTags(Builder $query, array $tags = [])
public function tags()
public function galleries()
public function scopeFilterByGalleries(Builder $query, array $galleries = [])
public function getUrl()
{
return route("vis_images_show_single", [$this->getSlug()]);
}
public function getSource($size = 'source')
public function getFileExtension($size = 'source')
public function getFileName($size = 'source')
public function getFileSize($size = 'source')
public function getFileMimeType($size = 'source')
public function images()
public function scopeHasImages(Builder $query)
public function scopeHasActiveImages(Builder $query)
public function getUrl()
{
return route("vis_galleries_show_single", [$this->getSlug()]);
}
public function getGalleryPreviewImage($size = 'cms_preview')
public function getSource($size = 'source')
public function getFileExtension($size = 'source')
public function getFileName($size = 'source')
public function getFileSize($size = 'source')
public function getFileMimeType($size = 'source')
public function preview()
public function videoGalleries()
public function api()
public function scopeFilterByVideoGalleries(Builder $query, array $galleries = [])
public function getSource()
public function getUrl()
{
return route("vis_videos_show_single", [$this->getSlug()]);
}
public function getPreviewImage($size = 'source')
public function getWatchUrl(array $urlParams);
public function getEmbedUrl(array $urlParams);
public function getPreviewUrl();
public function getApiResponse();
public function getTitle();
public function getDescription();
public function getViewCount();
public function getLikeCount();
public function getDislikeCount();
public function getFavoriteCount();
public function getCommentCount();
public function videos()
public function scopeHasVideos(Builder $query)
public function scopeHasActiveVideos(Builder $query)
public function getUrl()
{
return route("vis_video_galleries_show_single", [$this->getSlug()]);
}