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.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful