Skip to content

Instantly share code, notes, and snippets.

@blogcacanid
Created November 8, 2020 14:18
Show Gist options
  • Save blogcacanid/dce861cbe57cfb3705a89b405756f333 to your computer and use it in GitHub Desktop.
Save blogcacanid/dce861cbe57cfb3705a89b405756f333 to your computer and use it in GitHub Desktop.
auth.php Authentication JWT 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