Ejemplo n.º 1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(UserStoreRequest $request)
 {
     if (!$request->exists('display_name') && ($request->has('first_name') || $request->has('last_name'))) {
         $request->merge(['display_name' => $request->input('first_name') . ' ' . $request->input('last_name')]);
     }
     return $this->user->create($request->all());
 }
Ejemplo n.º 2
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(UserStoreRequest $request)
 {
     $persons = new Person();
     $persons->FirstName = $request->input('FistName');
     $persons->LastName = $request->input('LastName');
     $persons->Number = $request->input('Number');
     $persons->PersonalNumber = $request->input('PersonalNumber');
     $persons->status = $request->input('type');
     $persons->password = bcrypt($request->input('passwod'));
     $persons->save();
     return redirect('person');
 }
Ejemplo n.º 3
0
 public function store(UserStoreRequest $request)
 {
     $this->repository->create($request->all());
     flash()->success(trans('users.messages.flash.store'));
     return Redirect::route('users.index');
 }
 /**
  * Store a newly created resource in storage.
  *
  * @param  \App\Http\Requests\UserStoreRequest  $request
  * @return \Illuminate\Http\Response
  */
 public function store(UserStoreRequest $request)
 {
     $user = $this->user->create($request->only(['name', 'email', 'password']));
     event(new UserStoreBroadcastEvent($user));
     return response($user);
 }