HomeController
class HomeController extends BackendController
主页控制器
Traits
PoppyTrait
用户设置和获取
PoppyTrait
DispatchesJobs
ValidatesRequests
Properties
static array | $permission | from Controller | |
protected int | $pagesize | pagesize | from Controller |
protected string | $ip | ip | from Controller |
protected Carbon | $now | now | from Controller |
protected string|null | $route | route | from Controller |
protected string|null | $title | title | from Controller |
protected PamAccount|null | $pam | from BackendController |
Methods
bool
userSettingSet(int $account_id, string $key, array $values, array $available = [])
No description
from
UserSettingTrait
View
index()
主页
login(Request $req)
登录
password()
修改本账户密码
clearCache()
No description
JsonResponse|Response|RedirectResponse
logout()
登出
View
cp()
控制面板
setting(string $path = 'poppy.mgr-page', int|string $index = 0)
Setting
Factory|View
easyWeb(string $type)
tools
Details
in
BackendController at line 24
__construct()
Controller constructor.
in
Controller at line 69
protected void
withViews()
No description
in
Controller at line 94
protected void
seo(mixed ...$args)
seo
in
PoppyTrait at line 43
protected AuthManager
pyAuth()
get auth
in
PoppyTrait at line 52
protected Translator
pyTranslator()
get translator
in
PoppyTrait at line 62
protected Repository
pyConfig()
Get configuration instance.
in
PoppyTrait at line 72
protected DatabaseManager
pyDb()
get db
in
PoppyTrait at line 81
protected Kernel
pyConsole()
Get console instance.
in
PoppyTrait at line 90
protected Container
pyContainer()
Get IoC Container.
in
PoppyTrait at line 99
protected Mailer
pyMailer()
Get mailer instance.
in
PoppyTrait at line 108
protected SessionManager|Store
pySession()
Get session instance.
in
PoppyTrait at line 117
protected Request
pyRequest()
get request
in
PoppyTrait at line 127
protected Redirector
pyRedirector()
get redirector
in
PoppyTrait at line 136
protected Factory
pyValidation()
get validation
in
PoppyTrait at line 146
protected Dispatcher
pyEvent()
get event
in
PoppyTrait at line 156
protected LoggerInterface
pyLogger()
get logger
in
PoppyTrait at line 166
protected ResponseFactory
pyResponse()
get response
in
PoppyTrait at line 176
protected Filesystem
pyFile()
get file
in
PoppyTrait at line 186
protected UrlGenerator
pyUrl()
get url
in
PoppyTrait at line 197
protected mixed
pyCache(string $tag = '')
get cache
in
PoppyTrait at line 211
protected RedisManager
pyRedis()
get redis
in
PoppyTrait at line 220
protected Factory
pyView()
get view
in
PoppyTrait at line 229
protected Poppy
pyPoppy()
get poppy
in
PoppyTrait at line 238
protected Ini
pyIni()
Ini Parser
in
PoppyTrait at line 247
protected Xml
pyXml()
Ini Parser
in
PoppyTrait at line 256
protected Yaml
pyYaml()
Yaml Parser
in
BackendController at line 45
PamAccount|null
pam()
当前用户 因为这里的用户也不一定有值, 而且 $this->pam 中也存在此数据, 所以这里打算废弃此引用
in
CoreTrait at line 16
ModuleManager
coreModule()
获取核心的模块
in
CoreTrait at line 25
PermissionManager
corePermission()
权限管理
in
UserSettingTrait at line 20
array|mixed
userSettingGet(int $account_id, string $key)
根据 用户ID获取配置
in
UserSettingTrait at line 33
bool
userSettingSet(int $account_id, string $key, array $values, array $available = [])
No description
at line 48
View
index()
主页
at line 72
login(Request $req)
登录
at line 118
password()
修改本账户密码
at line 125
clearCache()
No description
at line 135
JsonResponse|Response|RedirectResponse
logout()
登出
at line 155
View
cp()
控制面板
at line 165
setting(string $path = 'poppy.mgr-page', int|string $index = 0)
Setting
at line 175
Factory|View
easyWeb(string $type)
tools