You may want to view: https://laracasts.com/series/css-grids-for-everyone
@jeffreyway demos a lot of layout techniques.
I want to show array of images in my blade view. I have a table which has some fields like name, address, images. where images are more than one how I can show multiple images in my blade-view.
blade view
<div class="business-gallery">
<div class="gallery">
{{-- {{dd($business->image)}} --}}
{{-- @json($business->image) --}}
<img src="{{$business['image'][0]}}" alt="Second image" />
</div>
</div>
for each loop etc doesn't work for me like this,I can even fetch/show single image on my view
@foreach($business['image'] as $image)
<image src="{{ $business['Name']}}" />
@endforeach
please help me out
@maaz So
@foreach(explode(',', $business->image) as $path)
<img src="{{ asset($path) }}">
@endforeach
Docs: https://www.php.net/manual/en/function.explode.php and https://laravel.com/docs/7.x/helpers#method-asset
But it will be propably better if your store your images in some directory and not exactly to the public folder.
Please or to participate in this conversation.