なぜ固定件数のお知らせ取得にpaginateを使っていた?

This commit is contained in:
shibafu 2018-01-07 22:45:57 +09:00
parent 767947ee6c
commit 6bfc1425a6

View File

@ -31,7 +31,8 @@ class HomeController extends Controller
->select('id', 'category', 'pinned', 'title', 'created_at') ->select('id', 'category', 'pinned', 'title', 'created_at')
->orderByDesc('pinned') ->orderByDesc('pinned')
->orderByDesc('created_at') ->orderByDesc('created_at')
->paginate(3); ->take(3)
->get();
$categories = Information::CATEGORIES; $categories = Information::CATEGORIES;
if (Auth::check()) { if (Auth::check()) {