Skip to content

registerAndActivate on a different connection doesn't work with config() #559

Description

@rxng

I am creating and migrating databases on the fly, and have managed to successfully do this with seeding of data.

However, when it comes to seeding a user on this new db using Sentinel::registerAndActivate , Sentinel defaults back to the main connection and creates a user on that connection.

It doesn't respect the connection that I have specified for the new database via config('database.connection')

Is there a workaround for this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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