ちょっとまってPinnedがむしろ下に潜り込んでた
This commit is contained in:
parent
9d6a76a7f8
commit
88456abb15
@ -30,7 +30,7 @@ class HomeController extends Controller
|
||||
if (Auth::check()) {
|
||||
$informations = Information::query()
|
||||
->select('id', 'category', 'pinned', 'title', 'created_at')
|
||||
->orderBy('pinned')
|
||||
->orderByDesc('pinned')
|
||||
->orderByDesc('created_at')
|
||||
->paginate(3);
|
||||
$categories = Information::CATEGORIES;
|
||||
|
@ -11,7 +11,7 @@ class InfoController extends Controller
|
||||
{
|
||||
$informations = Information::query()
|
||||
->select('id', 'category', 'pinned', 'title', 'created_at')
|
||||
->orderBy('pinned')
|
||||
->orderByDesc('pinned')
|
||||
->orderByDesc('created_at')
|
||||
->paginate(20);
|
||||
return view('info.index')->with([
|
||||
|
Loading…
Reference in New Issue
Block a user