protected function buildLocalizedRules($attributes)
    {
        $rules = [];
        $locales = config('app.locales');

        foreach ($locales as $locale => $name) {
            foreach ($attributes as $attribute => $rule) {
                $rules[$attribute.'_'.$locale] = $rule;
            }
        }

        return $rules;
    }
protected function buildLocalizedRules($attributes)
    {
        $rules = [];
        $locales = config('app.locales');

        foreach ($locales as $locale => $name) {
            foreach ($attributes as $attribute => $rule) {
                $rules[$attribute.'_'.$locale] = $rule;
            }
        }

        return $rules;
    }
protected function buildLocalizedRules ( $ attributes ) { $ rules = [ ] ; $ locales = config ( 'app.locales' ) ; foreach ( $ locales as $ locale => $ name ) { foreach ( $ attributes as $ attribute => $ rule ) { $ rules [ $ attribute . '_' . $ locale ] = $ rule ; } } return $ rules ; }
builds localized suffixed rules for validation.

@param $attributes

@return array
builds localized suffixed rules for validation .