Skip to content

Factory Create - Bad connection name #111

Closed
@macedd

Description

@macedd

I'm configuring a system which has various DBs. By default config('database.default') is equal to mysql. I have installed dynamodb and set its configurations.

The problem is when a DynamoDbModel is created by a factory:

    $user = factory(User::class)->create();

The result is $connection property from the model is filled with mysql string. And thus AWS DynamoDB Client thrown an error due to invalid configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions