SysContent
class SysContent extends Model mixin Eloquent
\Poppy\Content\Models\SysContent
Traits
对 filter 的封装, 进行页面返回
Filterable
Constants
TYPE_DEFAULT |
|
Properties
protected | $table | ||
protected | $fillable | ||
int | $id | ||
string | $title | 标题 | |
string | $keyword | 关键词 | |
string | $description | 描述 | |
string|null | $slug | 友好访问名称 | |
string | $type | 分类[简易分类标识] | |
int | $cat_id | 分类 ID |
|
string | $thumb | 缩略图 | |
int | $list_order | 排序 | |
int | $account_id | 账号 ID |
|
int | $is_enable | 是否启用 | |
string | $content | 内容 | |
string | $author | 作者 | |
string | $create_at | 创建时间(展示用) | |
Carbon|null | $created_at | ||
Carbon|null | $updated_at | ||
PamAccount|null read-only | $pam |
Methods
static JsonResponse
from
FilterTrait
static array
kvType()
No description
HasOne
pam()
返回用户
static SysContent
filter(array $input = [], mixed $filter)
No description
static SysContent
newModelQuery()
No description
static SysContent
newQuery()
No description
static SysContent
static SysContent
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
static SysContent
query()
No description
static SysContent
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
static SysContent
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)
No description
static SysContent
whereEndsWith(mixed $column, mixed $value, mixed $boolean)
No description
static SysContent
whereLike(mixed $column, mixed $value, mixed $boolean)
No description
Details
in
FilterTrait at line 28
mixed
scopePageFilter(Builder $query, PageInfo $pageInfo)
No description
in
FilterTrait at line 41
static JsonResponse
paginationInfo(Model $Db, string|Closure $resource, array $append = [])
No description
at line 71
static array
kvType()
No description
at line 87
HasOne
pam()
返回用户
at line 48
static SysContent
filter(array $input = [], mixed $filter)
No description
at line 48
static SysContent
newModelQuery()
No description
at line 48
static SysContent
newQuery()
No description
at line 48
static SysContent
pageFilter(PageInfo $pageInfo)
No description
at line 48
static SysContent
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
at line 48
static SysContent
query()
No description
at line 48
static SysContent
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
at line 48
static SysContent
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)
No description
at line 48
static SysContent
whereEndsWith(mixed $column, mixed $value, mixed $boolean)
No description
at line 48
static SysContent
whereLike(mixed $column, mixed $value, mixed $boolean)
No description