https://github.com/avinashn/laravel-consumer-app
An example app which consumes an API made in Laravel which is authenticated with passport packages
https://github.com/avinashn/laravel-consumer-app
Last synced: 4 months ago
JSON representation
An example app which consumes an API made in Laravel which is authenticated with passport packages
- Host: GitHub
- URL: https://github.com/avinashn/laravel-consumer-app
- Owner: avinashn
- Created: 2019-05-23T10:17:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:28:08.000Z (over 3 years ago)
- Last Synced: 2025-05-16T02:37:10.379Z (about 1 year ago)
- Language: PHP
- Size: 1.45 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel-Consumer-App
An example app which consumes an API made in Laravel which is authenticated with passport packages.
## Prerequisites
- After cloning this repository, go to the root folder, run the following command/s,
composer install
composer update - Rename .env.example to .env and provide your database details there.
- Run
php artisan key:generate
## Modify the API auth credentials
- Register to the API at https://demos.justlaravel.com/integrate-passport-laravel-api/
- Open web.php(`/routes/web.php`) and modify `client_id`, `client_secret`,`username`,`password` which can be obtained in the API
## Reference Post
https://justlaravel.com/integrate-passport-laravel-api