protected function getMessagesForWildcardKey($key, $format)
    {
        return collect($this->messages)
                ->filter(function ($messages, $messageKey) use ($key) {
                    return Str::is($key, $messageKey);
                })
                ->map(function ($messages, $messageKey) use ($format) {
                    return $this->transform(
                        $messages, $this->checkFormat($format), $messageKey
                    );
                })->all();
    }
protected function getMessagesForWildcardKey($key, $format)
    {
        return collect($this->messages)
                ->filter(function ($messages, $messageKey) use ($key) {
                    return Str::is($key, $messageKey);
                })
                ->map(function ($messages, $messageKey) use ($format) {
                    return $this->transform(
                        $messages, $this->checkFormat($format), $messageKey
                    );
                })->all();
    }
protected function getMessagesForWildcardKey ( $ key , $ format ) { return collect ( $ this -> messages ) -> filter ( function ( $ messages , $ messageKey ) use ( $ key ) { return Str :: is ( $ key , $ messageKey ) ; } ) -> map ( function ( $ messages , $ messageKey ) use ( $ format ) { return $ this -> transform ( $ messages , $ this -> checkFormat ( $ format ) , $ messageKey ) ; } ) -> all ( ) ; }
Get the messages for a wildcard key.

@param  string  $key
@param  string|null  $format
@return array
Get the messages for a wildcard key .