Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. IlluminateAuthSessionGuard::login() must be an instance of IlluminateContractsAuthAuthenticatable, instance of Appcustomer given.
  2.  
  3. public function store(Request $request)
  4. {
  5. $user = new customer;
  6. $user->name=Input::get('name');
  7. $user->email=Input::get('email');
  8. $user->password=Input::get('password');
  9. $user->save();
  10.  
  11. Auth::login($user);
  12. return redirect::home();
  13. }
  14.  
  15. Route::get('register', 'testing@index');
  16. Route::post('store', 'testing@store');
  17. Route::get('login', 'testing@create');
  18. Route::post('logout', 'testing@destroy');
  19.  
  20. <form action="store" method="post">
  21. <label for="name">Name</label>
  22. <input type="text" name="name" autocomplete="off">
  23. <br>
  24. <label for="email">Email</label>
  25. <input type="text" name="email" autocomplete="off">
  26. <br>
  27. <label for="password">Password</label>
  28. <input type="text" name="password" autocomplete="off">
  29. <br>
  30. <input type="hidden" name="_token" value="{{csrf_token()}}">
  31. <br>
  32. <input type="submit" name="submit" value="Submit">
  33. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement