ちょっとまってPinnedがむしろ下に潜り込んでた

This commit is contained in:
shibafu 2017-11-07 00:57:33 +09:00
parent 9d6a76a7f8
commit 88456abb15
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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([