E
E
Eugene2018-02-15 16:59:14
Laravel
Eugene, 2018-02-15 16:59:14

How to properly specify the Bouncer tables to use?

Tell me where it is correct to register so that Bouncer uses other table names for work.
Now I have them registered in the constructor of each controller. But I believe that this is not correct.

Bouncer::tables([
            'abilities' => 'new_nameTable1',
            'permissions' => 'new_nameTable2',
            'roles' => 'new_nameTable3',
            'assigned_roles' => 'new_nameTable4',
        ]);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Wells, 2018-02-16
@atachrus

In the provider, the boot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question