All credit goes to uzegonemad. I've only added the following.
- Now supports Laravel 5.3+ (using
pluck()method in stead oflists()) - The methods
attachPermission()anddetachPermission()now accept strings (name of the permission) - Permissions are reloaded before
can()checks to ensure they are up to date.
Entrust is a fantastic role-based permission library for Laravel. However, by design, it only supports attaching permissions to roles, not to users.