forked from generationtux/jwt-artisan
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Samir Sabri edited this page May 8, 2016
·
4 revisions
For installing in Lumen:
In app.php:
// use the customized Application
$app = new App\Application(
realpath(__DIR__.'/../')
);
$app->configure('auth');
$app->register(App\Providers\JwtAuthGuardServiceProvider::class);
At config/auth.php:
'defaults' => [
'guard' => 'api',
'passwords' => 'users',
],
'guards' => [
'api' => [
'driver' => 'jwt-auth-trackware',
'provider' => 'users'
],
],