An open API service indexing awesome lists of open source software.

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

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