Zizaco/entrust — pull request #176 by AndreasHeiberg (2014-08-03 07:00:00+00:00)
Title: Forced user_id and role_id for roles relationship

I choose to not make my own Role and Permission model and just use your EntrustRole and EntrustPermission directly instead.

The issue here is that eloquent will infer the column names from the class name hence trying to set attached_roles.entrust_role_id

By enforcing the column names we get around this issue without any considerable downsides in my opinion.