Fixing bug where custom validation messages in bundle language files were not getting picked up.
This commit is contained in:
@@ -692,7 +692,7 @@ class Validator {
|
|||||||
{
|
{
|
||||||
return $this->messages[$custom];
|
return $this->messages[$custom];
|
||||||
}
|
}
|
||||||
elseif (Lang::has($custom = "validation.custom.{$custom}", $this->language))
|
elseif (Lang::has($custom = "{$bundle}validation.custom.{$custom}", $this->language))
|
||||||
{
|
{
|
||||||
return Lang::line($custom)->get($this->language);
|
return Lang::line($custom)->get($this->language);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user