1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Added ability to set a page to view on the homepage.

Relates to #372 and #126
This commit is contained in:
Dan Brown
2017-08-28 13:38:32 +01:00
parent d8e1f52ddd
commit 55759bd22a
14 changed files with 173 additions and 11 deletions

View File

@ -62,7 +62,7 @@ class ViewService
$query->whereIn('viewable_type', $filterModel);
} else if ($filterModel) {
$query->where('viewable_type', '=', get_class($filterModel));
};
}
return $query->with('viewable')->skip($skipCount)->take($count)->get()->pluck('viewable');
}