美文网首页
laravel uri

laravel uri

作者: 苍老师的眼泪 | 来源:发表于2020-09-16 22:32 被阅读0次
        echo request()->method();
        echo '<br>';
        echo request()->getHost();
        echo '<br>';
        echo request()->getHttpHost();
        echo '<br>';
        echo request()->getSchemeAndHttpHost();
        echo '<br>';
        echo Route::current()->uri;
        echo '<br>';
        echo url()->current();
        echo '<br>';
        echo url()->full();
        echo '<br>';
        echo url()->previous();
    
    GET
    localhost
    localhost:81
    http://localhost:81
    api/test
    http://localhost:81/api/test
    http://localhost:81/api/test?name=Edison
    http://localhost:81
    

    相关文章

      网友评论

          本文标题:laravel uri

          本文链接:https://www.haomeiwen.com/subject/gdhkyktx.html