samedi 19 mars 2016

Laravel 5 Language specific path

I use laravel 5.1

I have 2 images:

test_de.png
test_en.png

Depending on the current language it should choose the correct image.

I try this:

  <img src="{{asset('site/images/test_{{Config::get('app.locale')}}.png')}}">

This not works, because it will not be parsed correctly. Any ideas why? Thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire