Skip to content

Instantly share code, notes, and snippets.

@blogcacanid

blogcacanid/auth.php

Created Jun 20, 2020
Embed
What would you like to do?
auth.php Rest API Dengan JSON Web Token Lumen 7
<?php
return [
'defaults' => [
'guard' => 'api',
'passwords' => 'users',
],
'guards' => [
'api' => [
'driver' => 'jwt',
'provider' => 'users',
],
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => \App\User::class
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment