管理画面のお知らせのリンクもおかしかった
This commit is contained in:
parent
9fcf9cd49e
commit
da8af95043
@ -44,12 +44,10 @@ class InfoController extends Controller
|
||||
return redirect()->route('admin.info.edit', ['info' => $info])->with('status', 'お知らせを更新しました。');
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
public function edit(Information $info)
|
||||
{
|
||||
$information = Information::findOrFail($id);
|
||||
|
||||
return view('admin.info.edit')->with([
|
||||
'info' => $information,
|
||||
'info' => $info,
|
||||
'categories' => Information::CATEGORIES
|
||||
]);
|
||||
}
|
||||
|
@ -27,7 +27,7 @@
|
||||
<span class="badge {{ $categories[$info->category]['class'] }}">{{ $categories[$info->category]['label'] }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ route('admin.info.edit', ['id' => $info->id]) }}">{{ $info->title }}</a>
|
||||
<a href="{{ route('admin.info.edit', ['info' => $info->id]) }}">{{ $info->title }}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ $info->created_at->format('Y年n月j日') }}
|
||||
|
Loading…
Reference in New Issue
Block a user