Today, if you want to get the first or last element of an array in PHP effectively, you can use the reset() and end() functions respectively.| Amit Merchant
While Laravel’s Eloquent ORM is pretty powerful and covers all the bases for most of the use cases, there will always be something that is missing. In other words, there will always be a feature that you don’t need until you need it.| Amit Merchant