SysApp
class SysApp extends Model mixin Eloquent
应用管理
Traits
对 filter 的封装, 进行页面返回
Filterable
Properties
protected | $table | ||
protected | $fillable | ||
int | $id | 应用 ID |
|
string | $title | 应用名称 | |
string | $name | 应用标识 | |
string | $secret | 应用密钥 | |
int | $account_id | 账号 ID |
|
string | $account_type | 账号用户类型 | |
string | $note | 应用备注 | |
int | $is_enable | 是否启用 | |
string | $permissions | 权限 | |
Carbon|null | $created_at | ||
Carbon|null | $updated_at |
Methods
static JsonResponse
from
FilterTrait
static array
item(int $appid)
获取缓存的信息
static bool
check(int $appid, string $permission)
验证权限
void
setPermissionsAttribute(array $permissions)
No description
getPermissionsAttribute(string $permissions)
No description
static SysApp
filter(array $input = [], mixed $filter)
No description
static SysApp
newModelQuery()
No description
static SysApp
newQuery()
No description
static SysApp
static SysApp
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
static SysApp
query()
No description
static SysApp
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
static SysApp
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)
No description
static SysApp
whereEndsWith(mixed $column, mixed $value, mixed $boolean)
No description
static SysApp
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 65
static array
item(int $appid)
获取缓存的信息
at line 83
static bool
check(int $appid, string $permission)
验证权限
at line 91
void
setPermissionsAttribute(array $permissions)
No description
at line 96
getPermissionsAttribute(string $permissions)
No description
at line 43
static SysApp
filter(array $input = [], mixed $filter)
No description
at line 43
static SysApp
newModelQuery()
No description
at line 43
static SysApp
newQuery()
No description
at line 43
static SysApp
pageFilter(PageInfo $pageInfo)
No description
at line 43
static SysApp
paginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
at line 43
static SysApp
query()
No description
at line 43
static SysApp
simplePaginateFilter(mixed $perPage, mixed $columns, mixed $pageName, mixed $page)
No description
at line 43
static SysApp
whereBeginsWith(mixed $column, mixed $value, mixed $boolean)
No description
at line 43
static SysApp
whereEndsWith(mixed $column, mixed $value, mixed $boolean)
No description
at line 43
static SysApp
whereLike(mixed $column, mixed $value, mixed $boolean)
No description