SystemMessage
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.
at line49
BelongsTo
type()
The type of this system message.
at line57
publish()
Publishes this system message if it wasn't alerady published.
at line74
bool
isPublished()
Returns whether this system message is published.