Свойство | Тип | Описание | |
---|---|---|---|
$fillable | array |
Метод | Описание | |
---|---|---|
__construct ( array $attributes = [] ) | Notification constructor. | |
body ( ) : |
||
from ( ) : |
||
getCustomFillableFields ( ) : mixed | Get custom required fields from the configs so that we can automatically bind them to the model fillable property. | |
getExtraAttribute ( $value ) : |
||
getNotifyBodyAttribute ( ) : string | Get parsed body attributes. | |
getStack ( ) : null | Illuminate\Database\Eloquent\Collection | Get the full stack of notifications if this has one. | |
getTextAttribute ( ) : string | Get parsed body attributes. | |
hasStack ( ) : boolean | Check if this notification is part of a stack. | |
newCollection ( array $models = [] ) : |
Custom Collection. | |
scopeByCategory ( $query, $category ) : mixed | Filter Scope by category. | |
scopeByStack ( $query, $stackId ) : mixed | Filter Scope by stack. | |
scopeOnlyExpired ( $query ) : mixed | Only Expired Notification scope. | |
scopeWherePolymorphic ( $query, $toId, $type ) : mixed | Where Polymorphic. | |
scopeWithNotRead ( $query ) : mixed | Not read scope. | |
to ( ) : |
Метод | Описание | |
---|---|---|
mergeFillable ( ) : array |
public __construct ( array $attributes = [] ) | ||
$attributes | array |
public body ( ) : |
||
Результат |
public from ( ) : |
||
Результат |
public getCustomFillableFields ( ) : mixed | ||
Результат | mixed |
public getExtraAttribute ( $value ) : |
||
$value | ||
Результат |
public getNotifyBodyAttribute ( ) : string | ||
Результат | string |
public getTextAttribute ( ) : string | ||
Результат | string |
public newCollection ( array $models = [] ) : |
||
$models | array | |
Результат |
public scopeByCategory ( $query, $category ) : mixed | ||
$query | ||
$category | ||
Результат | mixed |
public scopeByStack ( $query, $stackId ) : mixed | ||
$query | ||
$stackId | ||
Результат | mixed |
public scopeOnlyExpired ( $query ) : mixed | ||
$query | ||
Результат | mixed |
public scopeWherePolymorphic ( $query, $toId, $type ) : mixed | ||
$query | ||
$toId | ||
$type | ||
Результат | mixed |
public scopeWithNotRead ( $query ) : mixed | ||
$query | ||
Результат | mixed |
public to ( ) : |
||
Результат |