add update and delete

This commit is contained in:
TimmensOne
2023-03-26 18:16:26 +02:00
parent f39a0f9443
commit 13f933e0b5
4 changed files with 34 additions and 2 deletions

View File

@ -13,4 +13,10 @@
<li>{{ $device['image_url'] }}</li>
</ul>
<button><a href="{{$device->device_id}}/edit">Edit</a></button>
<form method="POST" action="{{$device->device_id}}">
@method('DELETE')
@csrf
<button>Delete</button>
</form>
@endsection