dusterio/lumen-passport

array_keys() expects parameter 1 to be array, null given when install

yogaxv opened this issue · 2 comments

when i run php artisan passport:install, lumen give me error

In InstallCommand.php line 34:
array_keys() expects parameter 1 to be array, null given

@yogaxv passport:install is a Laravel Passport command, it's not a part of this package?

@yogaxv i had this issue this morning the proper fix is to add the auth.php in the config file from the setup process. config => auth.php

`return [
'defaults' => [
'guard' => 'api',
'passwords' => 'users',
],

'guards' => [
    'api' => [
        'driver' => 'passport',
        'provider' => 'users',
    ],
],

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

];`