I got an API (no web) app with Laravel 5.3. I'm trying to use native token functionality. I can register a user and get token back but I don't know how to login and authenticate a user with credentials (email and password).
I don't find any doc about that. Is it possible without using third party package ?
If I use login function from LoginController
Call to undefined method Illuminate\Auth\TokenGuard::attempt()
Auth::guard('web')->attempt($credentials)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.