when I try to write like this, Vscode shows an error.
$token = auth('api')->attempt($credentials);
Undefined method ‘attempt’.intelephense(1013)
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