SystemMessage
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.
Traits
HasFactory
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 42
Builder
scopePublished(Builder $query)
All published system messages.
at line 52
BelongsTo
type()
The type of this system message.
at line 60
publish()
Publishes this system message if it wasn't alerady published.
at line 77
bool
isPublished()
Returns whether this system message is published.