UserType extends Model Uses SoftDeletes
Table of Contents
- USERTYPE_ADMIN = 2
- USERTYPE_AGENT = 4
- USERTYPE_MANAGER = 3
- USERTYPE_SUPERADMIN = 1
- $dates : array<string|int, mixed>
- Column for soft deletes
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable.
- $guarded : array<string|int, mixed>
- The attributes that are not mass assignable.
- $hidden : array<string|int, mixed>
- The attributes that should be hidden for arrays.
- $table : string
- The table associated with the model.
- $with : array<string|int, mixed>
- The extra attributes that should be showed for arrays.
- modules() : mixed
- Get the modules of the item.
- users() : mixed
- Get the modules of the item.
Constants
USERTYPE_ADMIN
public
mixed
USERTYPE_ADMIN
= 2
USERTYPE_AGENT
public
mixed
USERTYPE_AGENT
= 4
USERTYPE_MANAGER
public
mixed
USERTYPE_MANAGER
= 3
USERTYPE_SUPERADMIN
public
mixed
USERTYPE_SUPERADMIN
= 1
Properties
$dates
Column for soft deletes
protected
array<string|int, mixed>
$dates
= ["deleted_at"]
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ['name', 'description']
$guarded
The attributes that are not mass assignable.
protected
array<string|int, mixed>
$guarded
= ["id", "created_at", "updated_at", "deleted_at"]
$hidden
The attributes that should be hidden for arrays.
protected
array<string|int, mixed>
$hidden
= ["created_at", "updated_at", "deleted_at"]
$table
The table associated with the model.
protected
string
$table
= "user_types"
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= []
Methods
modules()
Get the modules of the item.
public
modules() : mixed
Return values
mixed —users()
Get the modules of the item.
public
users() : mixed