Laravel: Get base url

后端 未结 17 1762
梦谈多话
梦谈多话 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:49

    You can also use URL::to('/') to display image in Laravel. Please see below:

     
    

    Assume that, your image is stored under "public/images".

提交回复
热议问题