krisanalfa / lumen-jwt

Lumen with JWT Authentication, Dingo API and CORS Support
258 stars 80 forks source link

not overriding config/auth.php #18

Closed Haafiz closed 7 years ago

Haafiz commented 7 years ago

If I override auth.php in config directory of lumen installation, then this;

    'providers' => [
        'jwt' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],
    ],

is still coming from package's config/auth.php file.

krisanalfa commented 7 years ago

Hi, firstly I want to thank you for reporting this issue. I'll investigate this issue tomorrow, because I'm on vacation today. Sorry for inconvenience.

krisanalfa commented 7 years ago

Hi, you can fix this issue with below step:

$app->register(Zeek\LumenDingoAdapter\Providers\LumenDingoAdapterServiceProvider::class);

in your bootstrap/app.php file, add this line:

$app->configure('auth');
Haafiz commented 7 years ago

Thanks for response but I tried this and it didn't work.

krisanalfa commented 7 years ago

You can simply composer update on your project to fix this issue. Thanks.