Advertisement
Guest User

Untitled

a guest
May 28th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. public function register(RegisterRequest $request)
  2. {
  3. if (config('access.users.confirm_email')) {
  4. $user = $this->user->create($request->all());
  5. event(new UserRegistered($user));
  6. dd ($request);
  7. // return redirect()->route('frontend.index')->withFlashSuccess(trans('exceptions.frontend.auth.confirmation.created_confirm'));
  8. } else {
  9. auth()->login($this->user->create($request->all()));
  10. event(new UserRegistered(access()->user()));
  11. return redirect($this->redirectPath());
  12. }
  13. }
  14.  
  15. 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