Laravel API

Add column “api_token” in table users

Postman issues in local

Postman doesn’t apply settings in host file, so don’t use “example.test”, change to “localhost:8000”.

Token

Reference:

  1. https://laravel.com/docs/5.8/api-authentication