/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $feature = Feature::find($id);
     $features = Feature::all();
     $modules = Module::all();
     if (is_null($feature)) {
         return redirect()->route('features.listfeature');
     }
     return View('features.editfeature', compact('feature', 'features', 'modules'));
 }
 public function getAll()
 {
     $obj = new Feature($this->db);
     echo json_encode($obj->all());
 }