Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
RainLab
Blog
Models
Category
getPostCountAttribute
RainLab\Blog\Models\Category::getPostCountAttribute PHP Method
Category Class Documentation
Show file
Open project: rainlab/blog-plugin
getPostCountAttribute()
public
method
public
getPostCountAttribute
( )
public function getPostCountAttribute() { return $this->posts()->count(); }
Category
afterDelete
beforeValidate
getCategoryPageUrl
getMenuTypeInfo
getPostCountAttribute
listSubCategoryOptions
resolveMenuItem
setUrl