PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Nahidul Hasan   Laravel Passport API AuthenticationAuthentication   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Passport API AuthenticationAuthentication
API using Laravel Passport to authenticate users
Author: By
Last change:
Date: 1 year ago
Size: 1,058 bytes
 

Contents

Class file image Download

Laravel with Passport Authentication

Basically this is a starter kit for you to integrate Laravel with Passport Authentication

Quick Start

  • Clone this repo or download it's release archive and extract it somewhere
  • You may delete .git folder if you get this code via git clone
  • Run composer install or composer update
  • Configure your .env file for authenticating via database
  • Run docker-compose build
  • Run docker-compose up -d
  • Run the following command to populate database tables.

    $ docker-compose exec php php artisan migrate
    
  • Visit `localhost:9008`

> Note: - You can now use:

  • 
    

    { "name" : "Test User ", "email" : "test@gmail.com", "password" : "secret", "password_confirmation" : "secret"

    }

  • 
    

And remember, Passport requires you to provide the token as a header.