Guest User

Untitled

a guest
Nov 22nd, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $id=Auth::guard("myuser")->id();
  2. $param=Myuser::find($id)->makeVisible("password")->password;
  3. return view("forms.form",[compact("input"),"param"=>$param]);
  4.  
  5. $id=Auth::guard("myuser")->id();
  6. $param=Myuser::find($id)->makeVisible("password");
  7. $password=$param->password;
  8. $value=$request->password;
  9. Validator::extend("checkPass",function($attribute,$value,$password){
  10. if (!Hash::check($value,$password)){
  11. return false;
  12. }
  13. return true;
  14. });
Add Comment
Please, Sign In to add comment