Skip to content

Database [users] not configured. After revoke or token expired #14

@kertul

Description

@kertul

Hi.
I really helped you make this package, but right now I have a problem when I revoke the token, or when the token has expired. I get the error message "Database [users] not configured."

please help me, my client is waiting and I'm stuck here. This is my code

'mongodb' => [ 'driver' => 'mongodb', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', 27017), 'database' => env('DB_DATABASE'), 'username' => env('DB_USERNAME'), 'password' => env('DB_PASSWORD'), 'options' => [ 'database' => 'users' ] ],

`public function logout(Request $request)
{
$request->user()->token()->revoke();

    return response()->json([
        'message' => 'Logout successfully'
    ], 200);
}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions