This a the demo project related to my article on Medium.
Clone the project from github:
git clone git@github.com: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://laravel-janitor-passport-demo.test/oauth/token
Otherwise update the url accordingly.