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