How to get last record of table in Laravel 5?

Here, i will show you how to select last row of database table using Laravel query builder. In PHP Laravel framework, there are several eloquent method to get last record from table. In this article, I will show you two way to getting last row of the table. In this example i going to use following method of laravel eloquent. 1)first() 2)orderBy() 3)latest() Above three method through we can simp.....

Posted On April 16, 2017