ちょっとまってPinnedがむしろ下に潜り込んでた
This commit is contained in:
1 parent
9d6a76a7f8
commit
88456abb15
2 files changed
+2
-2
No files matched your search
@@ -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([
|
||||
|
||||
Reference in new issue
Block a user