Example #1
0
 public static function update_information($device_slug, $request, $user, $information)
 {
     $device = Device::whereSlug($device_slug)->first();
     $user->recordActivity('updates', $information);
     return redirect()->back()->with('message', $device->name . '\'s information was successfully updated')->with('message_label', 'alert-success');
 }
Example #2
0
 public function showDeviceInformation($device_slug)
 {
     $device = Device::whereSlug($device_slug)->with(['information', 'category'])->first();
     return view('devices.device_tab.information', compact('device'));
 }