tp6重定向
//引入
use think\exception\HttpResponseException;
//方法
public function redirect(...$args)
{
throw new HttpResponseException(redirect(...$args));
}
//调用
public function index(){
$this->redirect(url('index/order/lists'));
}
Class 'think\\facade\\Filesystem' not found
composer require topthink/think-filesystem 1.0.1