获取域名

admin8个月前Laravel400

/**
* 获取域名
*/
public function domain()
{
   return request()->getSchemeAndHttpHost();
}

相关文章

下载文件

public function img_url() { $id = request()->param('id', 1122); $info = Db::name('...

生成唯一的订单号

public function get_order_sn() {     return date('Ymd') ...

忘记密码

publicfunction forget(){    $phone = request()->input('phone');    $c...

小程序的二维码

    public function qrcode()    {        $qcode = "http...

excel 导出

header("Content-Type: application/vnd.ms-excel; name='excel'"); header("Content-Disposition:atta...

批量处理数据

   public function index44()    {        $domain = request(...