$collection->last()

Returns the last element from the array

  • return (mixed)