Modules/Users/Http/Controllers/RegisterController.php
/**
     * Handle a registration request for the application.
     *
     * @override RegistersUsers::register()
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
     */
Handle a registration request for the application.


Handle a registration request for the application .
public function register(Request $request)
    {
        $this->validator($request->all())->validate();
        $user = $this->create($request->all());
        if ($response = $this->registered($request, $user)) {
            return $response;
        }
        return $request->wantsJson()
                    ? new JsonResponse([], 201)
                    : redirect($this->redirectPath());
    }
public function register ( Request $ request ) { $ this -> validator ( $ request -> all ( ) ) -> validate ( ) ; $ user = $ this -> create ( $ request -> all ( ) ) ; if ( $ response = $ this -> registered ( $ request , $ user ) ) { return $ response ; } return $ request -> wantsJson ( ) ? new JsonResponse ( [ ] , 201 ) : redirect ( $ this -> redirectPath ( ) ) ; }
Handle a registration request for the application.
Handle a registration request for the application .