I am using the following package for role handling in Laravel 5: romanbican/roles
Now I can access my testers and customers with the following syntax:
$testers = User::role('tester')->get();
$customers = User::role('customer')->get();
It would be really helpful if I could access my testers with the following syntax:
$testers = Tester::get();
Is there any possibility I could achieve this behaviour? I tried to subclass the User model but it didn't work as expected.
I would really appreciate any help.