Category: Laravel, Laravel, Laravel, PHP, PHP, PHP, api, api, api

This Article is for Laravel Version: 6.* and Passport Version: 8.* Open AuthServiceProvider.php located in yourProject/app/Providers/AuthServiceProvider.php and add the bold lines: 4.

Please consider that you may need to create some random users if you don’t have any in your database.

Now you need to select Body tab and choose form-data. Type in values as below: The response should be something like this: You will need to pass in the access_token each time you want to send a request to your API.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners