diff --git a/device-app/app/Http/Controllers/DeviceController.php b/device-app/app/Http/Controllers/DeviceController.php new file mode 100644 index 0000000..9c01feb --- /dev/null +++ b/device-app/app/Http/Controllers/DeviceController.php @@ -0,0 +1,24 @@ + Device::all() + ]); + } + + public function show(Device $device) + { + return view('devices.show', [ + 'device' => $device + ]); + } +} diff --git a/device-app/resources/views/components/device-card.blade.php b/device-app/resources/views/components/device-card.blade.php new file mode 100644 index 0000000..dd691d8 --- /dev/null +++ b/device-app/resources/views/components/device-card.blade.php @@ -0,0 +1,4 @@ +@props(['device']) +
\ No newline at end of file diff --git a/device-app/resources/views/deviceList.blade.php b/device-app/resources/views/devices/index.blade.php similarity index 63% rename from device-app/resources/views/deviceList.blade.php rename to device-app/resources/views/devices/index.blade.php index ab48492..0f076b0 100644 --- a/device-app/resources/views/deviceList.blade.php +++ b/device-app/resources/views/devices/index.blade.php @@ -5,12 +5,10 @@ @unless(count($devices) == 0)No devices found
@endunless -@endsection \ No newline at end of file +@endsection diff --git a/device-app/resources/views/deviceDetail.blade.php b/device-app/resources/views/devices/show.blade.php similarity index 97% rename from device-app/resources/views/deviceDetail.blade.php rename to device-app/resources/views/devices/show.blade.php index 5543fca..dc468cd 100644 --- a/device-app/resources/views/deviceDetail.blade.php +++ b/device-app/resources/views/devices/show.blade.php @@ -12,4 +12,4 @@