@@ 73-79 (lines=7) @@ | ||
70 | * @param String $id |
|
71 | * @return Response |
|
72 | */ |
|
73 | public function show($id) |
|
74 | { |
|
75 | $this->authorize('show', SensorData::class); |
|
76 | ||
77 | $sensorData = SensorData::findOrFail($id); |
|
78 | return view('sensordata.show', [ 'sensordata' => $sensorData ]); |
|
79 | } |
|
80 | ||
81 | /** |
|
82 | * Show the form for editing the specified resource. |
|
@@ 87-93 (lines=7) @@ | ||
84 | * @param String $id |
|
85 | * @return Response |
|
86 | */ |
|
87 | public function edit($id) |
|
88 | { |
|
89 | $this->authorize('edit', SensorData::class); |
|
90 | ||
91 | $sensorData = SensorData::findOrFail($id); |
|
92 | return view('sensordata.edit', [ 'sensordata' => $sensorData ]); |
|
93 | } |
|
94 | ||
95 | /** |
|
96 | * Update the specified resource in storage. |