/**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function edit($id)
 {
     $trap = Traps::findOrFail($id);
     $trap['network'] = array_add(Network::lists('name', 'id'), 0, 'Default');
     if ($trap->user_id != Auth::user()->id) {
         return redirect(route('network.index'));
     }
     $notifications = Notifications::latest()->get();
     return view('traps.edit')->with('trap', $trap)->with('notifications', $notifications);
 }