Example #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(StorePersonRequest $request)
 {
     $person = new Person($request->all());
     $person->save();
     Session::flash('message', 'Person created');
     return redirect('/person');
 }
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(StorePersonRequest $request)
 {
     $this->personService->store($request->all());
     return redirect('persona')->with('message', 'Persona Registrado')->withInput($request->all());
 }