なぜ固定件数のお知らせ取得に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')
->orderByDesc('pinned')
->orderByDesc('created_at')
->paginate(3);
->take(3)
->get();
$categories = Information::CATEGORIES;
if (Auth::check()) {