class SysAdContent extends Model mixin Eloquent

广告内容

Traits

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

Filterable

Constants

ACTION_ROUTE

ACTION_URL

ACTION_NONE

Properties

protected $table
protected $fillable
int $id id
string $title 广告标题
string $src 地址
int $place_id 广告位ID
string $value 动作值
string $introduce 广告的介绍
string|null $end_at 开始时间
string|null $start_at 开始时间
string $note 备注
string $action 动作
int $list_order 排序
int $is_enable

是否启用[0: 不显示, 1:显示]

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|string
kvAction(null $key = null)

动作

static SysAdContent
filter(array $input = [], mixed $filter)

No description

static SysAdContent
newModelQuery()

No description

static SysAdContent
newQuery()

No description

static SysAdContent
pageFilter(PageInfo $pageInfo)

No description

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

No description

static SysAdContent
query()

No description

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

No description

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

No description

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

No description

static SysAdContent
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|string kvAction(null $key = null)

动作

Parameters

null $key key

Return Value

array|string

at line 43
static SysAdContent filter(array $input = [], mixed $filter)

No description

Parameters

array $input
mixed $filter

Return Value

SysAdContent

at line 43
static SysAdContent newModelQuery()

No description

Return Value

SysAdContent

at line 43
static SysAdContent newQuery()

No description

Return Value

SysAdContent

at line 43
static SysAdContent pageFilter(PageInfo $pageInfo)

No description

Parameters

PageInfo $pageInfo

Return Value

SysAdContent

at line 43
static SysAdContent paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

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

Return Value

SysAdContent

at line 43
static SysAdContent query()

No description

Return Value

SysAdContent

at line 43
static SysAdContent simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)

No description

Parameters

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

Return Value

SysAdContent

at line 43
static SysAdContent whereBeginsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysAdContent

at line 43
static SysAdContent whereEndsWith(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysAdContent

at line 43
static SysAdContent whereLike(mixed $column, mixed $value, mixed $boolean)

No description

Parameters

mixed $column
mixed $value
mixed $boolean

Return Value

SysAdContent