This is now redundant.  Read our post on creating three-way relationship with a custom pivot class, which you can use to attach a group of permissions.

Packagist: developerswarehouse/permissions

Currently in development, I still need to run some tests and ensure the package is also compatible with older releases of Laravel and PHP.

The intention behind the permissions package, is to allow you to define permissions in a one to many or via a relationship, such as a user group/type.  I’ve included a trait to use with your models so that you can easily check object permissions.  I have found wrapping the hasPermissions() with a Laravel Policy can really make this a powerful pairing, however if you only require a directly “A can be B” relationship then a direct check for the permissions will be more suitable.