Collection Laravel obtient la dernière clé d'un tableau
$collection->keys()->last()
Shadow
$collection->keys()->last()
$collection = collect(['key1' => 'value1', 'key2' => 'value2', 'key3' => 'value3']);
dd($collection->reverse()->keys()->first());