ブレード内でのルート指定
更新日 2025-06-03 15:02:43
laravel
ブレード内でのルート指定方法
Aタグ
Aタグの場合<a href="{{ route('user.edit', ['id' => $user->id]) }}">edit</a>
フォーム
フォームの場合<form method="POST" action="{{ route('user.update')}}"">
@method('put')
@csrf
</form>
<a href="{{ route('user.edit', ['id' => $user->id]) }}">edit</a>
<form method="POST" action="{{ route('user.update')}}"">
@method('put')
@csrf
</form>