コード例 #1
0
 /**
  * Store a newly category skill
  *
  * @return string
  */
 public function store()
 {
     $vld = CategorySkill::validate(\Input::all());
     if ($vld->passes()) {
         $cskill = new CategorySkill(\Input::all());
         $cskill->save();
         return json_encode($cskill);
     }
     return json_encode(array("Error" => $vld->messages()));
 }