title: How to use append attributes with Laravel Eloquent and pagination
body: <p>How can I use append attributes with Laravel Eloquent and pagination? We are trying to load the data from Laravel Eloquent, wherein we have to append attributes. So we want to query based on the append attributes, which works fine when not using skip and take. But we need to add the pagination and need the option of skip and take, but return an error.</p>
  <p><strong>Model</strong></p>
  <pre><code>protected $appends = ['isSlaBreach'];
  
  public function getIsSlaBreachAttribute() 
  {
      return true or false
  }
  </code></pre>
  <p><strong>Controller</strong></p>
  <pre><code>$overdue_tickets-&gt;skip($skip);
  $overdue_tickets-&gt;take($take);
  $res = $overdue_tickets-&gt;get()-&gt;where('isSlaBreach', true);
  </code></pre>
  <p>Need guidance on the same.</p>