Open huaiguoguo opened 6 years ago
Try using auth('api')->attempt($credentials)
instead.
The actual way to do this would be setting the deafult driver to API.
'defaults' => [
'guard' => 'api',
'passwords' => 'users',
],
It's in the docs.
@Joshgallagher How do I use this with the latest version of Laravel, 5.6+
@Joshgallagher He will affect the web pattern Official pits should not modify any default values
Subject of the issue
Describe your issue here.
how long wait for 1.0 version docment ?
Your environment
Steps to reproduce
Tell us how to reproduce this issue.
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead