dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
654 stars 139 forks source link

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

Closed yogaxv closed 4 years ago

yogaxv commented 4 years ago

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

dusterio commented 4 years ago

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

eiromz commented 4 years ago

@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
    ]
]

];`