catchAdmin/app/Request.php

15 lines
184 B
PHP
Raw Normal View History

2019-12-02 23:04:43 +08:00
<?php
namespace app;
// 应用请求对象类
2019-12-12 18:52:11 +08:00
use catchAdmin\user\Auth;
2019-12-02 23:04:43 +08:00
class Request extends \think\Request
{
2019-12-12 18:52:11 +08:00
public function user()
{
return Auth::user();
}
2019-12-02 23:04:43 +08:00
}