title: laravel get one of each duplicate column
body: <p>The structure of the table in the database is as follows:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>body</th>
  <th>user_id</th>
  <th>group_id</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>test1</td>
  <td>1</td>
  <td>1</td>
  </tr>
  <tr>
  <td>2</td>
  <td>test1</td>
  <td>2</td>
  <td>1</td>
  </tr>
  <tr>
  <td>3</td>
  <td>test1</td>
  <td>3</td>
  <td>1</td>
  </tr>
  <tr>
  <td>3</td>
  <td>test2</td>
  <td>4</td>
  <td>2</td>
  </tr>
  <tr>
  <td>4</td>
  <td>test3</td>
  <td>5</td>
  <td>3</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I want to get the first row from each <code>group_id</code> with Eloquent/DB Facade or MongoDB Query in Laravel with paginate:</p>
  <h4>For Example:</h4>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>body</th>
  <th>user_id</th>
  <th>group_id</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>test1</td>
  <td>1</td>
  <td>1</td>
  </tr>
  <tr>
  <td>3</td>
  <td>test2</td>
  <td>4</td>
  <td>2</td>
  </tr>
  <tr>
  <td>4</td>
  <td>test3</td>
  <td>5</td>
  <td>3</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>How is this achievable?</p>