/**
  * Store a newly created resource in storage.
  *
  * @return json
  */
 public function store()
 {
     $vld = StatusProject::validate(\Input::all());
     if ($vld->passes()) {
         $statusproject = new StatusProject(\Input::all());
         $statusproject->save();
         return json_encode($statusproject);
     }
     return json_encode(array("Error" => $vld->messages()));
 }