samedi 13 juin 2020

in laravel Property [password] does not exist on this collection instance

hello i use login page for login on my website and where call admin password i see Property [password] does not exist on this collection instance error

my method when dd password :

 public function dologin(Request $request){

    $username = $request->username;
    $password = $request->password;
    $admin = User::with('usermetas')->where('username',$username)->
    orWhere('email',$username)->where('admin','0')->get();
    dd($admin->password);}

my users table have a password varchar(250) colomen



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2AZk6Xn
via IFTTT

Aucun commentaire:

Enregistrer un commentaire