Search code examples
imagelaravelobjectlaravel-5assets

Put one dinamic object with assets in laravel


Hi i dont know how put img with assets. I have this

{{asset('Articulos/{{$Articulo->path}}')}}

but i have error syntax error, unexpected '}'

can you help me?


Solution

  • The correct syntax is:

    {{ asset('Articulos/' . $Articulo->path) }}