url()辅助函数

url()函数会给指定路径返回绝对路径

例如:url('admin/login')

echo url()->current(); //当前url没有参数
echo url()->full();  //完整的url包含了参数
echo url()->previous();  //上次的url



首页 我的博客
粤ICP备17103704号