如何在流明中{{asset('/css/app.css')}}? [英] How to do {{ asset('/css/app.css') }} in Lumen?

查看:102
本文介绍了如何在流明中{{asset('/css/app.css')}}?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在流明中,我可以在刀片模板中执行此操作:

In Lumen, I can do this in my blade template:

{{ url('/css/app.css') }}

在Laravel中我可以做

In Laravel I could do

{{ asset('/css/app.css') }}

在Lumen中,URL助手是我所需要的吗?

Is the url helper all I have to work with in Lumen?

推荐答案

看看

Have look at Lumen UrlGenerator source code, the Lumen framework supports just url and route helpers. Of course, you can write the asset helper if you want.

这篇关于如何在流明中{{asset('/css/app.css')}}?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆