Menu

## RoleUser extends Model
in package
uses SoftDeletes, HasFactory

RoleUser.php : 27

Class RoleUser

Model for managing user role associations.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$deleted_at : DateTime
$id : int
$role : Role
$role_id : int
$updated_at : DateTime
$user : User
$user_id : int
$user_type : string
$dates : array<string|int, mixed>
  The attributes that should be mutated to dates.
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

role() : BelongsTo
  Get the role for this user.
user() : BelongsTo
  Get the user for this role.

### Properties

#### $created_at

RoleUser.php : 0
`public DateTime $created_at`

#### $deleted_at

RoleUser.php : 0
`public DateTime $deleted_at`

#### $id

RoleUser.php : 0
`public int $id`

#### $role read-only

RoleUser.php : 0
`public Role $role`

#### $role_id

RoleUser.php : 0
`public int $role_id`

#### $updated_at

RoleUser.php : 0
`public DateTime $updated_at`

#### $user read-only

RoleUser.php : 0
`public User $user`

#### $user_id

RoleUser.php : 0
`public int $user_id`

#### $user_type

RoleUser.php : 0
`public string $user_type`

#### $dates

RoleUser.php : 54

The attributes that should be mutated to dates.

`protected array<string|int, mixed> $dates = ['deleted_at']`

#### $fillable

RoleUser.php : 45

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['role_id', 'user_id', 'user_type']`

#### $table

RoleUser.php : 38

The table associated with the model.

`protected string $table = 'role_user'`

### Methods

#### role()

RoleUser.php : 61

Get the role for this user.

`public role() : BelongsTo`

##### Return values

BelongsTo

#### user()

RoleUser.php : 71

Get the user for this role.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results