Home >PHP Framework >Laravel >How to introduce css in laravel

How to introduce css in laravel

藏色散人
藏色散人Original
2021-06-01 14:02:552969browse

How to introduce css in laravel: first find and open the public folder; then pass "

How to introduce css in laravel

##The operating environment of this article: Windows 7 system, Laravel version 5.7, DELL G3 computer

Laravel introduces css and js files

laravel默认从public开始,所以静态文件放到public下开始,只需要把你想要加载的css文件和js文件放入public文件夹中即可。

这里以我用得layui为例:

Just load them in the project file:

 <link rel="stylesheet" href="{{URL::asset('layui-v2.5.4/layui/css/layui.css ')}}">

 

# Related recommendations: The latest five Laravel video tutorials

##

The above is the detailed content of How to introduce css in laravel. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn