Laravel Passport guuard

38 Views Asked by At

passport guard does not support attempt function to authenticate ?

if(auth()->guard('api-partner')->attempt(['email' =>$request->email , 'password' => $request->password]))
        {
            //logged succesfly `your text`
            //create token here 

        }

but i have this exception

BadMethodCallException: Method Laravel\Passport\Guards\TokenGuard::attempt does not exist

0

There are 0 best solutions below