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