diff --git a/device-app/app/Http/Controllers/DeviceController.php b/device-app/app/Http/Controllers/DeviceController.php index 2a299f2..673ec71 100644 --- a/device-app/app/Http/Controllers/DeviceController.php +++ b/device-app/app/Http/Controllers/DeviceController.php @@ -37,6 +37,10 @@ public function store(Request $request){ return redirect('/devices'); } + public function edit(Device $device) { + return view('devices.edit', ['device' => $device]); + } + public function show(Device $device) { return view('devices.show', [ diff --git a/device-app/resources/views/devices/edit.blade.php b/device-app/resources/views/devices/edit.blade.php new file mode 100644 index 0000000..0acce54 --- /dev/null +++ b/device-app/resources/views/devices/edit.blade.php @@ -0,0 +1,57 @@ +@extends('layout') + +@section('content') +
+@endsection \ No newline at end of file diff --git a/device-app/resources/views/devices/show.blade.php b/device-app/resources/views/devices/show.blade.php index dc468cd..b6713fe 100644 --- a/device-app/resources/views/devices/show.blade.php +++ b/device-app/resources/views/devices/show.blade.php @@ -12,4 +12,5 @@