This commit is contained in:
shibafu committed 2019-01-15 00:05:01 +09:00
1 parent a2f797cbbe
commit faf0755ebd
44 files changed
+87 -68

No files matched your search

+2
View File
@@ -14,6 +14,7 @@ class InfoController extends Controller
->orderByDesc('pinned')
->orderByDesc('created_at')
->paginate(20);
return view('info.index')->with([
'informations' => $informations,
'categories' => Information::CATEGORIES
@@ -23,6 +24,7 @@ class InfoController extends Controller
public function show($id)
{
$information = Information::findOrFail($id);
return view('info.show')->with([
'info' => $information,
'category' => Information::CATEGORIES[$information->category]