Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

A demo application of how to setup authentication with Laravel Janitor using Passport as a driver.

Notifications You must be signed in to change notification settings

pactode/laravel-janitor-passport-demo

Repository files navigation

Laravel Janitor Passport Demo

This a the demo project related to my article on Medium.

Installation

Clone the project from github:

git clone [email protected]:pactode/laravel-janitor-passport-demo.git

Change directory to the project root.

cd laravel-janitor-passport-demo

Install dependencies with composer

composer install

Copy the .env.example file to .env and update the database information accordingly.

cp .env.example .env

Generate application key

php artisan key:generate

Run the database migrations

php artisan migrate

Install Passport

php artisan passport:install

Seed the database

php artisan db:seed

Update the .env file (if using Laravel Valet with .test as domain)

JANITOR_OAUTH_TOKEN_URL=http:https://laravel-janitor-passport-demo.test/oauth/token

Otherwise update the url accordingly.

About

A demo application of how to setup authentication with Laravel Janitor using Passport as a driver.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published