Role
class Role extends Model
A role of a user. Users have one global role and can have many project- specific roles.
Traits
Some models have fixed, "constant" instances. An example is the Role model, which may have e.g. the roles "admin" and "user". These are always the same and do not change.
HasFactory
Constants
INSTANCES |
The constant instances of this model. |
Properties
bool | $timestamps | Don't maintain timestamps for this model. |
Methods
static mixed
__callStatic(string $key, mixed $arguments)
Get one of the instances of this model that are defined in the INSTANCES constant array.
from
HasConstantInstances
static int
adminId()
No description
static int
expertId()
No description
static int
editorId()
No description
static int
guestId()
No description
Details
in
HasConstantInstances at line 35
static mixed
__callStatic(string $key, mixed $arguments)
Get one of the instances of this model that are defined in the INSTANCES constant array.
at line 22
static Role
admin()
No description
at line 22
static int
adminId()
No description
at line 22
static Role
expert()
No description
at line 22
static int
expertId()
No description
at line 22
static Role
editor()
No description
at line 22
static int
editorId()
No description
at line 22
static Role
guest()
No description
at line 22
static int
guestId()
No description