laravel/laravel — pull request #909 by JesseObrien (2012-07-06 16:19:20+00:00)
Title: Feature/messages transform key

Currently, there's no ability to reference a key that a message
belongs to in the transform() function's formatting. I found a need
for it when applying classes to messages (success, error, etc) on
a site.

Example: $messages->all('
:message
');

I also added return $this; in the add() function to allow for method
chaining.

Example: $messages = IoC::resolve('messages')->add('succes', 'Successful action');