In this tutorial we will learn to get last record with group by in laravel eloquent. while working with group by in mysql its gives first record from the group by records that means if you have multiple record with…

How to use Laravel count rows with example ?
MySQL count method gives the total number of rows in executed query, In Laravel we use eloquent or query builder to execute the query. In Laravel eloquent or query builder we use count method to count the rows. We can…
how to add multiple select in laravel eloquent ?
Laravel eloquent builder has rich features to modify the query. In some cases we wanted to modify the select statement on basis of few conditions and wanted to add some select statement on condition. so in this article we will…