Showing with 11 additions and 0 deletions.
  1. +11 −0 src/Illuminate/Support/MessageBag.php
@@ -158,6 +158,17 @@ public function all($format = null)
return $all;
}

/**
* Get all of the unique messages for every key in the bag.
*
* @param string $format
* @return array
*/
public function unique($format = null)
{
return array_unique($this->all($format));
}

/**
* Format an array of messages.
*