将本地文件夹引用到头Laravel中 [英] Referencing local folders into head laravel
本文介绍了将本地文件夹引用到头Laravel中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Im,包括自定义引导文件夹& css进入laravel索引,但是我的尝试均无济于事,不胜感激如何制作它.
Im including custom bootstrap folder & css into laravel index, but none ofmy tries works, appreciate help of how to make it.
我已将文件夹放在lavarel的公用文件夹中
i have placed the folders in public folder of lavarel
<link href="css/StyleSheet_landingPage.css" rel="stylesheet">
<link href="Content/font-awesome.min.css" rel="stylesheet" />
推荐答案
As @Harven suggested in the comments, you should read up on using the asset helper method with Laravel.
假设您的样式表位于以下位置:
Assuming your stylesheet lives at the following:
Laravel/public/css/StyleSheet_landingPage.css
然后这将起作用.
<link href="{{ asset('css/StyleSheet_landingPage.css') }}" rel="stylesheet" type="text/css" >
这篇关于将本地文件夹引用到头Laravel中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文