- * // Add an error message for the "email" key
- * $messages->add('email', 'The e-mail address is invalid.');
- *
- *
* @param string $key
* @param string $message
* @return void
@@ -46,11 +41,6 @@ class Messages {
/**
* Determine if messages exist for a given key.
*
- *
- * // Determine if there are any messages for the "email" key
- * $has = $messages->has('email');
- *
- *
* @param string $key
* @return bool
*/
@@ -64,14 +54,6 @@ class Messages {
*
* Optionally, a format may be specified for the returned message.
*
- *
- * // Get the first message for the "email" key
- * $message = $messages->first('email');
- *
- * // Get the first message for the "email" key wrapped in tags
- * $message = $messages->first('email', '
:message
');
- *
- *
* @param string $key
* @param string $format
* @return string
@@ -84,14 +66,6 @@ class Messages {
/**
* Get all of the messages for a key.
*
- *
- * // Get all of the messages for the "email" key
- * $message = $messages->get('email');
- *
- * // Get all of the messages for the "email" key wrapped in tags
- * $message = $messages->get('email', '
:message
');
- *
- *
* @param string $key
* @param string $format
* @return array
@@ -106,14 +80,6 @@ class Messages {
/**
* Get all of the messages for every key.
*
- *
- * // Get all of the messages for every key
- * $message = $messages->all();
- *
- * // Get all of the messages for every key wrapped in tags
- * $message = $messages->all('
:message
');
- *
- *
* @param string $format
* @return array
*/