title: How to fix laravel 8 UI paginate problem?
body: <p>I had a problem while trying out the recently released laravel 8, I'm trying to find out what the changes are and how it works. When I did that I had a problem with the paginate laravel 8 UI getting messy and somehow it happened. Is there anyone who can help me? or have experienced the same thing?</p>
  <p>Like this the view I got in laravel 8
  <a href="https://i.stack.imgur.com/KzWYl.png" rel="noreferrer">Laravel 8 paginate UI</a></p>
  <p>and this is the code I use &quot;Index.blade.php&quot;</p>
  <pre><code>@extends('layouts.app')
  
  @section('title', 'Post')
  
  @section('contents')
  
      &lt;div class=&quot;container&quot;&gt;
          &lt;div class=&quot;row&quot;&gt;
              @foreach ($posts as $post)
                  &lt;div class=&quot;col-md-4 mb-4&quot;&gt;
                      &lt;div class=&quot;row&quot;&gt;
                          &lt;div class=&quot;card mb-4&quot;&gt;
                              &lt;div class=&quot;card-header&quot;&gt;
                                  {{ $post-&gt;title }}
                              &lt;/div&gt;
                              &lt;div class=&quot;card-body&quot;&gt;
                                  {{ $post-&gt;body }}
                              &lt;/div&gt;
                              &lt;div class=&quot;card-footer&quot;&gt;
                                  {{ $post-&gt;created_at-&gt;diffForHumans() }}
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              @endforeach
          &lt;/div&gt;
          &lt;div class=&quot;d-felx justify-content-center&quot;&gt;
  
              {{ $posts-&gt;links() }}
  
          &lt;/div&gt;
      &lt;/div&gt;
  
  @endsection
  </code></pre>
  <p>the code I use for PostController</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Models\Posts;
  use Illuminate\Http\Request;
  
  class PostsController extends Controller
  {
      public function index()
      {
          $posts = Posts::latest()-&gt;paginate(6);
          // dd($post);
          return view('post.index', compact('posts'));
      }
  }
  </code></pre>