📜  js 文件在 laravel 中的 live laravel 项目中找不到 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:12.043000             🧑  作者: Mango

代码示例1
All assets should be placed in the public folder

public/js
public/css
public/fonts
public/images

You can access the assets using the asset() method or the Laravel HTML helper methods HTML::script and HTML::style. i.e to include Javascript file:

 - 

 - {{ HTML::script('js/yourfile.js') }}

Hope this helps!