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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners