Is it possible to use Laratrust together with politicians Laravel, or is it mutually exclusive?

The task is to implement the roles and user groups. It is necessary to determine eligibility for access to sections and perform certain actions. Also, the group (or role) can affect the display of different information.
Originally wanted to use Laratrust for this, but the built-in policies as something familiar.
It would be much easier to check for role in politics, but the trait laratrust overloads a method can() as a User model.

Tell me, how do you solve similar problems with different access rights? (:
March 19th 20 at 08:39
2 answers
March 19th 20 at 08:41
Use bouncer. But judging by github, laratrust too, with gates and politicians friendly (still recommend a bouncer).
and what better bouncer? briefly
a cursory viewing of documentation gave the impression that to verify I need to use the facade Bouncer, or am I wrong? - turne commented on March 19th 20 at 08:44
@turne, no, not necessary) Have traits that are applied to the model, there are desired methods, type ->can(). Why bouncer - because he's got caching, because it allows you to use their models NOT inheriting it (a trait that is important to me), because it almost forces you to use ->can() is isRole(), because it does not use config files for configuration of roles and so on. In General, it is a full ACL from beginning to end, with everything out of the box, and each update - thought out and discussed with the community. I trust him, and I like it - that's tl;dr =) - Adan commented on March 19th 20 at 08:47
@Shannon, thanks, will test sometime)
but laratrust can also in the cache, and inherit his models not necessarily: it creates 3 models: resolution, role, team, and the User simply connects the trait that contains ->can(), ->hasRole (), etc. And the configs are used to specify the used models, tables, cache, and other settings. So a matter of taste, I guess) - turne commented on March 19th 20 at 08:50
@turne, well, these models inherit laratrust'native, and to me this is not an option (well, it generally sucks) ). On the account config: - that's the craziest thing, IMHO. - Adan commented on March 19th 20 at 08:53
@Shannon, Oh, those models, Yes, inherit) as for configs, I meant the fifth branch: - there's a game there) - turne commented on March 19th 20 at 08:56
@turne, is))))) - Adan commented on March 19th 20 at 08:59
March 19th 20 at 08:43
it was easier than I thought.
To enable Laratrust in the logic of the standard Policy, see:

use Illuminate\Foundation\Auth\Access\Authorizable;
use Laratrust\Traits\LaratrustUserTrait;

 use LaratrustUserTrait;
 use Authorizable {
 Authorizable::can insteadof LaratrustUserTrait;
 LaratrustUserTrait::can as laratrustCan;

Find more questions by tags Laravel