This is a laravel API boilerplate with a fully set up JWT for token and middleware
Method | URI | Action | Middleware |
GET|HEAD | / | Closure | web |
POST | api/auth/login | App\Http\Controllers\AuthController@login | api |
POST | api/auth/logout | App\Http\Controllers\AuthController@logout | jwt.verify |
POST | api/auth/me | App\Http\Controllers\AuthController@me | jwt.verify |
POST | api/auth/refresh | App\Http\Controllers\AuthController@refresh | jwt.verify |
POST | api/auth/register | App\Http\Controllers\AuthController@register | jwt.verify |
To protect a route, Use jwt.verify middleware