MetaFox

PlatformRole
in

Table of Contents

Methods

getPermissionValue()  : mixed
Determine if the user may perform the given permission.
hasPermissionValue()  : bool
Determine if the user may perform the given permission.

Methods

getPermissionValue()

Determine if the user may perform the given permission.

public getPermissionValue(string|Permission $permission) : mixed
Parameters
$permission : string|Permission
Tags
throws
GuardDoesNotMatch

hasPermissionValue()

Determine if the user may perform the given permission.

public hasPermissionValue(string|Permission $permission) : bool
Parameters
$permission : string|Permission
Tags
throws
GuardDoesNotMatch
Return values
bool

        
On this page

Search results