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

mixed
scopePageFilter(Builder $query, PageInfo $pageInfo)

No description

static JsonResponse
paginationInfo(Model $Db, string|Closure $resource, array $append = [])

No description

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
pageFilter(PageInfo $pageInfo)

No description

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

Parameters

Builder $query 查询条件
PageInfo $pageInfo 分页

Return Value

mixed

in FilterTrait at line 41
static JsonResponse paginationInfo(Model $Db, string|Closure $resource, array $append = [])

No description

Parameters

Model $Db 数据对象
string|Closure $resource 资源
array $append 增加

Return Value

JsonResponse

at line 71
static array kvType()

No description

Return Value

array

at line 87
HasOne pam()

返回用户

Return Value

HasOne

at line 48
static SysContent filter(array $input = [], mixed $filter)

No description

Parameters

array $input
mixed $filter

Return Value

SysContent

at line 48
static SysContent newModelQuery()

No description

Return Value

SysContent

at line 48
static SysContent newQuery()

No description

Return Value

SysContent

at line 48
static SysContent pageFilter(PageInfo $pageInfo)

No description

Parameters

PageInfo $pageInfo

Return Value

SysContent

at line 48
static SysContent paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

mixed $perPage
mixed $columns
mixed $pageName
mixed $page

Return Value

SysContent

at line 48
static SysContent query()

No description

Return Value

SysContent

at line 48
static SysContent simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

mixed $perPage
mixed $columns
mixed $pageName
mixed $page

Return Value

SysContent

at line 48
static SysContent whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysContent

at line 48
static SysContent whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysContent

at line 48
static SysContent whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysContent