class AdPlace extends Model

广告位

Traits

对 filter 的封装, 进行页面返回

Filterable

Properties

protected $table
protected $fillable
int $id id
string $title 广告位名称
string $thumb 广告位示意图
string $introduce 广告位介绍
int $width 宽度
int $height 高度
Carbon|null $created_at 创建时间
Carbon|null $updated_at 修改时间

Methods

mixed
scopePageFilter(Builder $query, PageInfo $pageInfo)

No description

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

No description

static array
title()

获取广告位标题

static Collection|Model|mixed|null|PamAccount|PamAccount[]
fetch(int $id, string $field = '')

No description

static array
returnAdContent(int $id)

通过广告位id获取广告位内容

static AdPlace
filter(mixed $input, mixed $filter)

No description

static AdPlace
pageFilter(PageInfo $pageInfo)

No description

static AdPlace
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

static AdPlace
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

static AdPlace
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

static AdPlace
whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

static AdPlace
whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Details

in FilterTrait at line 26
mixed scopePageFilter(Builder $query, PageInfo $pageInfo)

No description

Parameters

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

Return Value

mixed

in FilterTrait at line 39
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 52
static array title()

获取广告位标题

Return Value

array

at line 73
static Collection|Model|mixed|null|PamAccount|PamAccount[] fetch(int $id, string $field = '')

No description

Parameters

int $id id
string $field 获取字段

Return Value

Collection|Model|mixed|null|PamAccount|PamAccount[]

at line 87
static array returnAdContent(int $id)

通过广告位id获取广告位内容

Parameters

int $id id

Return Value

array

at line 33
static AdPlace filter(mixed $input, mixed $filter)

No description

Parameters

mixed $input
mixed $filter

Return Value

AdPlace

at line 33
static AdPlace pageFilter(PageInfo $pageInfo)

No description

Parameters

PageInfo $pageInfo

Return Value

AdPlace

at line 33
static AdPlace paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

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

Return Value

AdPlace

at line 33
static AdPlace simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

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

Return Value

AdPlace

at line 33
static AdPlace whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

AdPlace

at line 33
static AdPlace whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

AdPlace

at line 33
static AdPlace whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

AdPlace