1
私はエラーを取得しています:Laravel&Algolia Instantsearch.js
Use of undefined constant image - assumed 'image' (View: C:\laragon\www\project\resources\views\home.blade.php)
私は私のAlgoliaがあるテンプレートヒットを表示しようとすると:
<script type="text/html" id="hit-template">
<div class="hit">
<div class="hit-image">
<img src="{{image}}" alt="{{name}}">
</div>
<div class="hit-content">
<h3 class="hit-price">${{price}}</h3>
<h2 class="hit-name">{{{_highlightResult.name.value}}}</h2>
<p class="hit-description">{{{_highlightResult.description.value}}}</p>
</div>
</div>
</script>
しかし、Laravelが、私は「思うように見えるがBladeで情報を出力しようとしています。 これを回避する方法はありますか?
完璧、ありがとう! –