LoginOut.php 380 B

12345678910111213141516171819
  1. <?php
  2. namespace App\Plugins\Result;
  3. use App\Plugins\Plugin;
  4. use Illuminate\Http\JsonResponse;
  5. class LoginOut extends Plugin
  6. {
  7. public function handler(): JsonResponse
  8. {
  9. $this->loginService->isLoginJson();
  10. // 删除当前用户的缓存信息
  11. $this->loginService->clearLoginInfo();
  12. return responseMessage(1001, '操作成功!');
  13. }
  14. }