Get fullUrl in laravel 5.1

后端 未结 3 1390
迷失自我
迷失自我 2020-12-28 14:10

i have multiple bootstrap tabs where each one do different action from others tabs for exmaple

app-url/users#creat-admin-users-tab app-url/users#

3条回答
  •  [愿得一人]
    2020-12-28 14:51

    Check the following

    $_SERVER['HTTP_HOST'] => Host name from the current request.

    $_SERVER['HTTP'] => Set to a non-empty value if the protocol is HTTP

    $_SERVER['HTTPS'] => Set to a non-empty value if the protocol is HTTPS

    $_SERVER["SERVER_PORT"] => Server port. Default is: 80

    $_SERVER['REQUEST_URI'] => The URI to access this page;

提交回复
热议问题