when I try to write like this, Vscode shows an error.
$token = auth('api')->attempt($credentials);
Undefined method ‘attempt’.intelephense(1013)
https://jwt-auth.readthedocs.io/en/develop/auth-guard/#validate
I guess that it happens why it refers to the attempt method despite that is Undecided before excursing.
How I can fix it?
Source: Ask PHP