/**
  * Display the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $trap = Traps::findOrFail($id);
     if ($trap->user_id != Auth::user()->id) {
         return redirect(route('network.index'));
     }
     $images = Images::where('trap_id', $id)->get();
     $error_logs = ErrorLog::where('trap_id', $id)->get();
     return view('traps.show')->with('trap', $trap)->with('images', $images)->with('error_logs', $error_logs);
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $log = $request->except('_token');
     $log = ErrorLog::create($log);
 }