Laravel: Get base url

后端 未结 17 1999
梦谈多话
梦谈多话 2020-12-07 10:09

Simple question, but the answer seems quite hard to come by. In Codeigniter, I could load the url helper and then simply do

echo base_url();
<
17条回答
  •  臣服心动
    2020-12-07 10:50

    For Laravel 5 I normally use:

    Link Text
    

    I'm of the understanding that using the url() function is calling the same Facade as URL::to()

提交回复
热议问题