title: Laravel orderBy date is not working when using paginator
body: <p>I am new to laravel and am struggling to figure this one out.I am trying to order my posts by date and also use the paginator. Whenever I remove the paginator. it orders by date, but adding it back in orders by id, I think?</p>
  
  <p>My model</p>
  
  <pre><code>class Post extends Model
  {
      //
  
  protected $dates = ['date'];
  }
  </code></pre>
  
  <p>My controller method</p>
  
  <pre><code>public function show()
      {
  
          $posts = Post::orderBy('date','desc')-&gt;get();
  
  
          return view('welcome',['posts' =&gt; Post::paginate(5)], compact('posts'));
      }
  </code></pre>