This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? php | |
/* | |
|-------------------------------------------------------------------------------- | |
| Environment Agnostinc: Requesting Password Grant Tokens Laravel using Passport | |
|-------------------------------------------------------------------------------- | |
| | |
| Ref: https://laravel.com/docs/5.8/passport#requesting-password-grant-tokens | |
| Set the environment url in .env. Example: http://localhost for local dev server | |
| Use config('app.url') in the post request | |
| Makes makes it easy for testing APIs in tools like Postman |