francescomalatesta / laravel-api-boilerplate-jwt

A Laravel 5.8 API Boilerplate to create a ready-to-use REST API in seconds.
MIT License
1.17k stars 285 forks source link

Undefined class Auth #81

Closed sundy-zhang closed 5 years ago

sundy-zhang commented 5 years ago

Hello,“$token = Auth::guard()->attempt($credentials); ” ,I haven't found out Auth Class what's going on.

tarhe commented 5 years ago

Did you include "use Auth;"?