Gets flash messages for a given type.
string $type Message category type.:
array $default Default value if $type does not exist.:
array
Overrides FlashBagInterface::peek
public function peek($type, array $default = array()) {
return $this
->has($type) ? $this->flashes[$type] : $default;
}