src/Validation/Rules.php
public function message(string $message, string $attribute, string $rule): string
    {
        if ("validation.{$rule}" !== $message) {
            return $message;
        }

        return $this->getTranslatedMessageFallback(
            str_replace('mongolid_', '', $rule),
            $attribute
        );
    }
public function message(string $message, string $attribute, string $rule): string
    {
        if ("validation.{$rule}" !== $message) {
            return $message;
        }

        return $this->getTranslatedMessageFallback(
            str_replace('mongolid_', '', $rule),
            $attribute
        );
    }
public function message ( string $ message , string $ attribute , string $ rule ) : string { if ( "validation.{$rule}" !== $ message ) { return $ message ; } return $ this -> getTranslatedMessageFallback ( str_replace ( 'mongolid_' , '' , $ rule ) , $ attribute ) ; }
Error message with fallback from Laravel rules 'unique' and 'exists'.
Error message with fallback from Laravel rules unique and exists .