ImageService $imageService,
PermissionService $permissionService,
Page $page
- )
- {
+ ) {
$this->image = $image;
$this->imageService = $imageService;
$this->restrictionService = $permissionService;
int $uploadedTo = null,
string $search = null,
callable $whereClause = null
- )
- {
+ ) {
$imageQuery = $this->image->newQuery()->where('type', '=', strtolower($type));
if ($uploadedTo !== null) {
int $pageSize = 24,
int $uploadedTo = null,
string $search = null
- )
- {
+ ) {
$contextPage = $this->page->findOrFail($uploadedTo);
$parentFilter = null;
if ($filterType === 'book' || $filterType === 'page') {
- $parentFilter = function(Builder $query) use ($filterType, $contextPage) {
+ $parentFilter = function (Builder $query) use ($filterType, $contextPage) {
if ($filterType === 'page') {
$query->where('uploaded_to', '=', $contextPage->id);
} elseif ($filterType === 'book') {
{
$image->thumbs = [
'gallery' => $this->getThumbnail($image, 150, 150, false),
- 'display' => $this->getThumbnail($image, 840, null, true)
+ 'display' => $this->getThumbnail($image, 1680, null, true)
];
}