コード例 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store()
 {
     $input = Input::all();
     $validation = Validator::make($input, Skill::$rules);
     if ($validation->passes()) {
         $this->skill->create($input);
         return Redirect::route('skills.index');
     }
     return Redirect::route('skills.create')->withInput()->withErrors($validation)->with('message', 'There were validation errors.');
 }
コード例 #2
0
ファイル: employer.php プロジェクト: joshjim27/jobsglobal
 function addskill($_post)
 {
     $user->id = $this->getuser();
     $profile = new Skill($user->id);
     $result = $profile->create($_post);
     return $result;
 }