Search code examples
laravelassetslaravel-bladelumen

How to do {{ asset('/css/app.css') }} in Lumen?


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

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

In Laravel I could do

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

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


Solution

  • 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.