| 123456789101112131415161718192021222324 |
- <?php
- namespace app\agent\service;
- use Lettered\Support\Auth;
- /**
- * 自定义实现
- * 这个可以不要
- */
- class JWTAuth extends Auth
- {
- /**
- * 重现登录方法
- * @param $user
- *
- * @return mixed|void
- */
- public function attempt($user)
- {
- return $this->{$this->getDriver()}($user);
- }
- }
|