luck-draw/app/controller/manager/Logout.php

22 lines
375 B
PHP

<?php
namespace app\controller\manager;
use app\controller\BaseController;
use think\response\Redirect;
class Logout extends BaseController
{
protected $noNeedLogin = ['index'];
/**
* 退出
*
* @return Redirect
*/
public function index(): Redirect
{
session(null);
return redirect(url('/manager/login/index'));
}
}