trait ReceivesPermissions (View source)

Methods to manage permissions that are granted to a model.

This trait is distinct from HasPermissions in that it is for models that take action (users and groups), rather than models that can be acted upon.

Properties

PermissionCollection read-only $permissions

Methods

static void
bootReceivesPermissions()

No description

MorphMany
permissions()

Relationship with the permission records granted to this model.

void
savePermissions(array|null $grid)

Save the permissions to the database.

Details

static void bootReceivesPermissions()

No description

Return Value

void

MorphMany permissions()

Relationship with the permission records granted to this model.

Return Value

MorphMany

void savePermissions(array|null $grid)

Save the permissions to the database.

Parameters

array|null $grid

Return Value

void