SysCategory
class SysCategory extends Model mixin Eloquent
分类管理
Traits
对 filter 的封装, 进行页面返回
Filterable
Constants
TYPE_DEFAULT |
|
SORT_GT |
|
SORT_LT |
|
Properties
protected | $table | ||
protected | $fillable | ||
int | $id | id | |
string | $title | 标题 | |
string | $name | 标识 | |
string | $parent_id | 上级 ID |
|
string | $type | 类型 | |
int | $list_order | 排序 | |
int | $is_enable | 排序 | |
Carbon|null | $created_at | 创建时间 | |
Carbon|null | $updated_at | 修改时间 |
Methods
static JsonResponse
from
FilterTrait
static array
kvType()
No description
static int
kvNameRefId(string $key)
名称和 ID 的映射
static string
kvTitle(int $id)
ID 和 标题的映射
static string
kvSlug(int $id)
ID 和 Name 的映射
static string
kvTypeSlug(int $id)
ID 和 Name 的映射
static array
tree(string $type, bool $replace_space = false)
树型
static SysCategory
filter(mixed $input, mixed $filter)
No description
static SysCategory
static SysCategory
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
static SysCategory
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
static SysCategory
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)
No description
static SysCategory
whereEndsWith(mixed $column, mixed $value, mixed $boolean)
No description
static SysCategory
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 57
static array
kvType()
No description
at line 75
static int
kvNameRefId(string $key)
名称和 ID 的映射
at line 91
static string
kvTitle(int $id)
ID 和 标题的映射
at line 106
static string
kvSlug(int $id)
ID 和 Name 的映射
at line 121
static string
kvTypeSlug(int $id)
ID 和 Name 的映射
at line 137
static array
tree(string $type, bool $replace_space = false)
树型
at line 37
static SysCategory
filter(mixed $input, mixed $filter)
No description
at line 37
static SysCategory
pageFilter(PageInfo $pageInfo)
No description
at line 37
static SysCategory
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
at line 37
static SysCategory
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
at line 37
static SysCategory
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)
No description
at line 37
static SysCategory
whereEndsWith(mixed $column, mixed $value, mixed $boolean)
No description
at line 37
static SysCategory
whereLike(mixed $column, mixed $value, mixed $boolean)
No description