Skip to content

allow us to configure the table on different connection / database please #84

@vesper8

Description

@vesper8

Hello!

As you know me from my heavy usage of your awesome laravel-love library, I like to split my laravel projects into many databases and I'm doing this for one that uses your laravel-ban package.

My bans table is on a different database then my main one. Oddly, methods such as isBanned() do not return any error. To be clear, my bans table is on a different database and the isBanned does correctly return true or false.. so it somehow is capable of interacting with the bans table on a different connection. How this is working right now is a bit puzzling!!

But when I try to actually ->ban() someone I get an error because it's looking for the bans table on the wrong connection.

Would it be possible for you to add a configuration to allow us to set a different connection please?

The same way you did it on laravel-love would be perfect:


'storage' => [
        'database' => [
            'connection' => env('DB_CONNECTION', 'mysql'),

Many many thanks!

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