Bristol SU Support Package
Static Protected Member Functions | List of all members
BristolSU\Support\Permissions\Facade\PermissionTester Class Reference
Inheritance diagram for BristolSU\Support\Permissions\Facade\PermissionTester:
Inheritance graph
[legend]
Collaboration diagram for BristolSU\Support\Permissions\Facade\PermissionTester:
Collaboration graph
[legend]

Static Protected Member Functions

static getFacadeAccessor ()
 

Detailed Description

Facade for testing permissions and registering testers

static bool evaluate(string $ability) Test if the currently authenticated user/group/role has the given ability static bool evaluateFor(string $ability, ?User $userModel = null, ?Group $group = null, ?Role $role = null) Test if the given set of credentials have a given ability static void register(Tester $tester) Register a new permission tester

Definition at line 21 of file PermissionTester.php.

Member Function Documentation

◆ getFacadeAccessor()

static BristolSU\Support\Permissions\Facade\PermissionTester::getFacadeAccessor ( )
staticprotected

Get the binding in the laravel container

Returns
string PermissionTester Contract

Definition at line 29 of file PermissionTester.php.


The documentation for this class was generated from the following file: