Guest User

Untitled

a guest
Apr 19th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public function signin(LoginFormValidation $request)
  2. {
  3. $user_password = $request->password;
  4.  
  5. $data = User::where('email','=',$request->email);
  6.  
  7. if (Hash::check($user_password, $data->password, flase))
  8. {
  9. echo "success";
  10. }
  11. else
  12. {
  13. echo "still not";
  14. }
  15. }
  16.  
  17. $data = User::where('email','=',$request->email);
  18.  
  19. $data = User::where('email','=',$request->email)->first();
Add Comment
Please, Sign In to add comment