refactor messages class.
This commit is contained in:
parent
8ddfdd9e7a
commit
af4403bac5
|
@ -70,10 +70,7 @@ public function first($key, $format = ':message')
|
|||
*/
|
||||
public function get($key = null, $format = ':message')
|
||||
{
|
||||
if (is_null($key))
|
||||
{
|
||||
return $this->all($format);
|
||||
}
|
||||
if (is_null($key)) return $this->all($format);
|
||||
|
||||
return (array_key_exists($key, $this->messages)) ? $this->format($this->messages[$key], $format) : array();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue