public function store(StoreUserRequest $request, Repository $config)
    {
        $this->dispatch(new RegisterUser($request->get('name'), $request->get('email'), $request->get('password')));

        return redirect($config->get('authentication.registration.redirectUri'));
    }
public function store(StoreUserRequest $request, Repository $config)
    {
        $this->dispatch(new RegisterUser($request->get('name'), $request->get('email'), $request->get('password')));

        return redirect($config->get('authentication.registration.redirectUri'));
    }
public function store ( StoreUserRequest $ request , Repository $ config ) { $ this -> dispatch ( new RegisterUser ( $ request -> get ( 'name' ) , $ request -> get ( 'email' ) , $ request -> get ( 'password' ) ) ) ; return redirect ( $ config -> get ( 'authentication.registration.redirectUri' ) ) ; }
Attempts to register the user.

@param StoreUserRequest $request
@param Repository $config
@return RedirectResponse
Attempts to register the user .