class SystemMessage extendsModel

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

protectedarray $fillable The attributes that are mass assignable.
protectedarray $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 line39
Builder scopePublished(Builder$query)

All published system messages.

Parameters

Builder $query

Return Value

Builder

at line49
BelongsTo type()

The type of this system message.

Return Value

BelongsTo

at line57
publish()

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

at line74
bool isPublished()

Returns whether this system message is published.

Return Value

bool