class SystemMessage extends Model

System messages are broadcasts from the application administrators that reach all users of the instance. Whenevr a new system message is published, each user will get a notification to read it.

Properties

protected array $fillable The attributes that are mass assignable.
protected array $casts The attributes that should be casted to native types.

Methods

Builder
scopePublished(Builder $query)

All published system messages.

BelongsTo
type()

The type of this system message.

publish()

Publishes this system message if it wasn't alerady published.

bool
isPublished()

Returns whether this system message is published.

Details

at line 39
Builder scopePublished(Builder $query)

All published system messages.

Parameters

Builder $query

Return Value

Builder

at line 49
BelongsTo type()

The type of this system message.

Return Value

BelongsTo

at line 57
publish()

Publishes this system message if it wasn't alerady published.

at line 74
bool isPublished()

Returns whether this system message is published.

Return Value

bool