在Laravel 5.1中获取fullUrl [英] Get fullUrl in laravel 5.1
本文介绍了在Laravel 5.1中获取fullUrl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有多个引导程序选项卡,其中每个选项卡与其他选项卡执行不同的操作
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#creat-regular-users-tab
Laravel中是否可以获取完整的网址,包括#tab名称
感谢您的时间.
推荐答案
检查以下内容
$_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;
这篇关于在Laravel 5.1中获取fullUrl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文