なぜ固定件数のお知らせ取得にpaginateを使っていた?
This commit is contained in:
parent
767947ee6c
commit
6bfc1425a6
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user