Свойство | Type | Description | |
---|---|---|---|
$timestamps | boolean | Indicates if the model should be timestamped. |
Свойство | Type | Description | |
---|---|---|---|
$guarded | array | The attributes that aren't mass assignable. | |
$table | string | The table associated with the model. | |
$taggableTable | string | The table associated with the model for morph. |
Méthode | Description | |
---|---|---|
getByTaggable ( string $taggableId ) : Illuminate\Database\Eloquent\Collection | static[] | Returns tags of the taggable | |
getCount ( ) : integer | Used count of model | |
getPopular ( string | null $instanceId = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] | Returns most popular tags | |
getPopularPeriod ( DateTime | string $since, DateTime | string | null $until = null, string | null $instanceId = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] | Returns most popular tags of date period | |
getPopularPeriodWhole ( DateTime | string $since, DateTime | string | null $until = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] | Returns most popular tags of date period in whole | |
getPopularWhole ( integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] | Returns most popular tags in whole | |
getTaggableTable ( ) : string | Returns table |
Méthode | Description | |
---|---|---|
wherePeriod ( |
Period query helper |
public static getByTaggable ( string $taggableId ) : Illuminate\Database\Eloquent\Collection | static[] | ||
$taggableId | string | taggable id |
Résultat | Illuminate\Database\Eloquent\Collection | static[] |
public static getPopularPeriod ( DateTime | string $since, DateTime | string | null $until = null, string | null $instanceId = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] | ||
$since | DateTime | string | begin date |
$until | DateTime | string | null | end date |
$instanceId | string | null | instance id |
$take | integer | take count |
Résultat | Illuminate\Database\Eloquent\Collection | static[] |
public static getPopularPeriodWhole ( DateTime | string $since, DateTime | string | null $until = null, integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] | ||
$since | DateTime | string | begin date |
$until | DateTime | string | null | end date |
$take | integer | take count |
Résultat | Illuminate\Database\Eloquent\Collection | static[] |
public static getPopularWhole ( integer $take = 15 ) : Illuminate\Database\Eloquent\Collection | static[] | ||
$take | integer | take count |
Résultat | Illuminate\Database\Eloquent\Collection | static[] |
public getTaggableTable ( ) : string | ||
Résultat | string |
protected array $guarded | ||
Résultat | array |
protected string $table | ||
Résultat | string |
protected string $taggableTable | ||
Résultat | string |
public bool $timestamps | ||
Résultat | boolean |