Collection {#568 ▼ #items: array:3 [▼ 0 => Configuration {#569 ▶} 1 => Configuration {#570 ▶} 2 => Configuration {#571 ▶} ] }
każda z nich składa się z
"id" => "1" "date_from" => "2018-05-01" "race_id" => "1" "created_at" => null "updated_at" => null
chciałbym pozostawić tylko ten item gdzie date_from jest najnowsze.
Lub zrobić to od razu z uzyciem Eloquenta ( bo to Laravel )
$configuration = $this->configurationRepository->getBy('race_id', $detail->race->id); // np. to daje mi powyższy wynik.