although I am successfully uploaded my image from my laravel projects storage\app\public\images\ directory. Now I want to fetch my images then I don't find any error but my image is not showing besides alt attributes. Here is my code: ProductController.php file:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Product;
class ProductController extends Controller
{
//
function index()
{
$data=Product::all();
return view('product',['products'=>$data]);
}
}
product.blade.php file:
@foreach($products as $item)
<div class="item {{$item['id']}}">
<img src="{{$item['gallery']}}" alt="Chaina"/>
<div class="carousel-caption">
<h3>{{$item['name']}}</h3>
<p>{{$item['description']}}</p>
</div>
</div>
@endforeach