コード例 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(UserCreateRequest $request)
 {
     /*
     $usr = new User;
     $usr->name = $request->name;
     $usr->email = $request->email;
     $usr->password = bcrypt($request->password);
     $usr->save();
     */
     User::Create($request->all());
     return redirect('/usuario')->with('message', 'El usuario ha sido dado de alta satisfactoriamente');
 }