app/Http/Requests/MainCateRequest.php
/**
     * Get the validation messages that apply to the request.
     *
     * @return array
     */
Get the validation messages that apply to the request.
@return array
Get the validation messages that apply to the request . @return array
public function messages()
    {
        return [
            'cate_bags.required'    => 'Please fulfill the category package',   
            'cate_bags.array'       => 'Please fulfill the category package',   
            'cate_bags.min'         => 'Please fulfill the category package',   
            'cate_bags.*.cate_name.required'    => 'Please enter the category name',                    
            'cate_bags.*.cate_name.string'      => 'Category name must be letters',                     
            'cate_bags.*.cate_name.max'         => 'Category name must be at most 100 characters',     
            'cate_bags.*.cate_abbr.required'    => 'Please enter the language abbreviation',                
            'cate_bags.*.cate_abbr.string'      => 'Language abbreviation must be letters',                 
            'cate_bags.*.cate_abbr.max'         => 'Abbreviation name must be at least 10 characters',      
            'cate_bags.*.cate_stat.required_without'    => 'Please slide to activate the translated category',          
            'cate_bags.*.cate_stat.in'                  => 'The value entered is invalid',                              
            'cate_imag.required_without'    => 'Please insert a category image',                         
            'cate_imag.mimes'               => 'Only "jpg", "jpeg", and "png" are available',        
        ];
    }
public function messages ( ) { return [ 'cate_bags.required' => 'Please fulfill the category package' , 'cate_bags.array' => 'Please fulfill the category package' , 'cate_bags.min' => 'Please fulfill the category package' , 'cate_bags.*.cate_name.required' => 'Please enter the category name' , 'cate_bags.*.cate_name.string' => 'Category name must be letters' , 'cate_bags.*.cate_name.max' => 'Category name must be at most 100 characters' , 'cate_bags.*.cate_abbr.required' => 'Please enter the language abbreviation' , 'cate_bags.*.cate_abbr.string' => 'Language abbreviation must be letters' , 'cate_bags.*.cate_abbr.max' => 'Abbreviation name must be at least 10 characters' , 'cate_bags.*.cate_stat.required_without' => 'Please slide to activate the translated category' , 'cate_bags.*.cate_stat.in' => 'The value entered is invalid' , 'cate_imag.required_without' => 'Please insert a category image' , 'cate_imag.mimes' => 'Only "jpg", "jpeg", and "png" are available' , ] ; }
Get the validation messages that apply to the request.
Get the validation messages that apply to the request .
// MAIN CATEGORIES VALIDATION MESSAGES OF CREATE AND EDIT FORMS // MAIN CATEGORY BAGS REQUIRED MESSAGE // MAIN CATEGORY BAGS ARRAY MESSAGE // MAIN CATEGORY MIN ONE BAG MESSAGE // MAIN CATEGORY REQUIRED NAME MESSAGE // MAIN CATEGORY STRING NAME MESSAGE // MAIN CATEGORY MAX LENGTH NAME MESSAGE // MAIN CATEGORY REQUIRED ABBREVIATION MESSAGE // MAIN CATEGORY STRING ABBREVIATION MESSAGE // MAIN CATEGORY MAX LENGTH ABBREVIATION MESSAGE // MAIN CATEGORY REQUIRED STATUS MESSAGE // MAIN CATEGORY STATUS OPTIONS MESSAGE // MAIN CATEGORY IMAGE REQUIRED MESSAGE // MAIN CATEGORY IMAGE EXTENSIONS MESSAGE