class SysAdPlace extends Model mixin Eloquent

广告位

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 array
returnAdContent(int $id)

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

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

No description

static SysAdPlace
pageFilter(PageInfo $pageInfo)

No description

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

No description

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

No description

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

No description

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

No description

static SysAdPlace
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 54
static array title()

获取广告位标题

Return Value

array

at line 75
static array returnAdContent(int $id)

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

Parameters

int $id id

Return Value

array

at line 35
static SysAdPlace filter(mixed $input, mixed $filter)

No description

Parameters

mixed $input
mixed $filter

Return Value

SysAdPlace

at line 35
static SysAdPlace pageFilter(PageInfo $pageInfo)

No description

Parameters

PageInfo $pageInfo

Return Value

SysAdPlace

at line 35
static SysAdPlace paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

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

Return Value

SysAdPlace

at line 35
static SysAdPlace simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

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

Return Value

SysAdPlace

at line 35
static SysAdPlace whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysAdPlace

at line 35
static SysAdPlace whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysAdPlace

at line 35
static SysAdPlace whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysAdPlace