Browse Source

grains refactor mkII

master
jk 3 years ago
parent
commit
1d561cb848
  1. 2
      resources/views/grains/index.blade.php

2
resources/views/grains/index.blade.php

@ -23,7 +23,7 @@
<td><a href="/grain/{{$grain->id}}">{{$grain->name}}</a> </td>
@if (Auth::user()->isAdmin())
<td><a href="{{ route('grains.edit',$grain->id)}}" class="btn btn-primary">Edit</a></td>
<td><form action="{{ route('grains.destroy', $grain->grain_id)}}" method="post">
<td><form action="{{ route('grains.destroy', $grain->id)}}" method="post">
@csrf
@method('DELETE')
<button class="btn btn-danger" type="submit">Delete</button>

Loading…
Cancel
Save