Skip to main content

Aero\\Admin\\Traits\\HasPermissions

This trait adds the ability to add permissions to a class easily. The trait adds the following methods:

permissions Method

This method accepts an array that will set the permissions required.

allowed Method

This method optionally accepts a user and will return if the user has the required permissions.