Menu

## PermissionUser extends Model
in package

PermissionUser.php : 25

Class PermissionUser

Model for managing user-specific permissions.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$deleted_at : DateTime
$id : int
$permission : Permission
$permission_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

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

### Properties

#### $created_at

PermissionUser.php : 0
`public DateTime $created_at`

#### $deleted_at

PermissionUser.php : 0
`public DateTime $deleted_at`

#### $id

PermissionUser.php : 0
`public int $id`

#### $permission read-only

PermissionUser.php : 0
`public Permission $permission`

#### $permission_id

PermissionUser.php : 0
`public int $permission_id`

#### $updated_at

PermissionUser.php : 0
`public DateTime $updated_at`

#### $user read-only

PermissionUser.php : 0
`public User $user`

#### $user_id

PermissionUser.php : 0
`public int $user_id`

#### $user_type

PermissionUser.php : 0
`public string $user_type`

#### $dates

PermissionUser.php : 49

The attributes that should be mutated to dates.

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

#### $fillable

PermissionUser.php : 40

The attributes that are mass assignable.

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

#### $table

PermissionUser.php : 33

The table associated with the model.

`protected string $table = 'permission_user'`

### Methods

#### permission()

PermissionUser.php : 56

Get the permission for this user.

`public permission() : BelongsTo`

##### Return values

BelongsTo

#### user()

PermissionUser.php : 66

Get the user for this permission.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results