Skip to content
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'
        ],

    ],
Clone this wiki locally