Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function register(RegisterRequest $request)
- {
- if (config('access.users.confirm_email')) {
- $user = $this->user->create($request->all());
- event(new UserRegistered($user));
- dd ($request);
- // return redirect()->route('frontend.index')->withFlashSuccess(trans('exceptions.frontend.auth.confirmation.created_confirm'));
- } else {
- auth()->login($this->user->create($request->all()));
- event(new UserRegistered(access()->user()));
- return redirect($this->redirectPath());
- }
- }
- POST /register HTTP/1.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding: gzip, deflate Accept-Language: en-US,en;q=0.8 Cache-Control: max-age=0 Connection: keep-alive Content-Length: 170 Content-Type: application/x-www-form-urlencoded Cookie: XSRF-TOKEN={{removed}} Host: localhost:8000 Origin: http://localhost:8000 Referer: http://localhost:8000/ Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36 _token=jwLZC59098AaUGFp4pYwv0m3sdEX91BhPvQn43Xq&name=test+user&password=testpass&password_confirmation=testpass&email=testmail%40test.com&summery=test+summery&terms=terms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement