Answer the question
In order to leave comments, you need to log in
Why laravel swears at the absence of a key in the array, but at the same time outputs it to the template?
There is code in the template:
<div>
<img src="{{ $product['image'] }}" alt="{{ $product['title'] }}">
</div>
view('product')->with(['product' => (array)DB::table($category)->where('id', $id)->first(),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question