title: how to display latest six posts on home page (Laravel 5.5)
body: <p>I'm want to display latest 6 posts on my homepage.Here I'm using Laravel and Javascript. but I'm getting the layout in different way. How can I display those things here. Any idea. Thanks in Advance. </p>
  
  <h2>post.blade.php</h2>
  
  <pre><code>&lt;div class="row"&gt;
  
    &lt;div class="col-lg-4"&gt;
  
      &lt;h2&gt;{{$article-&gt;title}}&lt;/h2&gt;
  
      {{ $article-&gt;created_at-&gt;toFormattedDateString() }}
  
      &lt;p&gt;{{$article-&gt;body}} &lt;/p&gt;
  
      &lt;p&gt;&lt;a class="btn btn-primary" href="#" role="button"&gt;View details &amp;raquo;&lt;/a&gt;&lt;/p&gt;
  
    &lt;/div&gt;
  
    &lt;div class="col-lg-4"&gt;
  
      &lt;h2&gt;{{$article-&gt;title}}&lt;/h2&gt;
  
      {{ $article-&gt;created_at-&gt;toFormattedDateString() }}
  
      &lt;p&gt;{{$article-&gt;body}} &lt;/p&gt;
  
      &lt;p&gt;&lt;a class="btn btn-primary" href="#" role="button"&gt;View details &amp;raquo;&lt;/a&gt;&lt;/p&gt;
  
    &lt;/div&gt;
  
    &lt;div class="col-lg-4"&gt;
  
      &lt;h2&gt;{{$article-&gt;title}}&lt;/h2&gt;
  
      {{ $article-&gt;created_at-&gt;toFormattedDateString() }}
  
      &lt;p&gt;{{$article-&gt;body}}&lt;/p&gt;
  
      &lt;p&gt;&lt;a class="btn btn-primary" href="#" role="button"&gt;View details &amp;raquo;&lt;/a&gt;&lt;/p&gt;
  
    &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <h2>index.blade.php</h2>
  
  <pre><code>@extends('master')
  
  @section('content')
  
  
  &lt;div class="container"&gt;
  
      @foreach ($article as $article)
  
        @include('article.post')
  
      @endforeach
  
  &lt;/div&gt;
  
  @endsection
  </code></pre>
  
  <h2>View</h2>
  
  <p>I want to display like view in a pattern but i'm getting a duplicate data. how can i rectify that
  <a href="https://i.stack.imgur.com/QCmXI.png" rel="nofollow noreferrer">View pic</a></p>