app/Http/Requests/LanguageRequest.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 [
            'lang-name.required'    => 'Please enter the language name',                        
            'lang-name.string'      => 'Language name must be letters',                         
            'lang-name.max'         => 'Language name must be at least 100 characters',         
            'lang-abbr.required'    => 'Please enter the language abbreviation',                
            'lang-abbr.string'      => 'Language abbreviation must be letters',                 
            'lang-abbr.max'         => 'Abbreviation name must be at least 10 characters',      
            'lang-dire.required'    => 'Please select the language direction',                  
            'lang-dire.in'          => 'Please select one of the two previous options',         
            'lang-stat.in'          => 'The value entered is invalid',                          
        ];
    }
public function messages ( ) { return [ 'lang-name.required' => 'Please enter the language name' , 'lang-name.string' => 'Language name must be letters' , 'lang-name.max' => 'Language name must be at least 100 characters' , 'lang-abbr.required' => 'Please enter the language abbreviation' , 'lang-abbr.string' => 'Language abbreviation must be letters' , 'lang-abbr.max' => 'Abbreviation name must be at least 10 characters' , 'lang-dire.required' => 'Please select the language direction' , 'lang-dire.in' => 'Please select one of the two previous options' , 'lang-stat.in' => 'The value entered is invalid' , ] ; }
Get the validation messages that apply to the request.
Get the validation messages that apply to the request .
// LANGUAGES VALIDATION MESSAGES OF CREATE // LANGUAGE REQUIRED NAME MESSAGE // LANGUAGE STRING NAME MESSAGE // LANGUAGE MAX LENGTH NAME MESSAGE // LANGUAGE REQUIRED ABBREVIATION MESSAGE // LANGUAGE STRING ABBREVIATION MESSAGE // LANGUAGE MAX LENGTH ABBREVIATION MESSAGE // LANGUAGE REQUIRD DIRECTION MESSAGE // LANGUAGE DIRECTION OPTIONS MESSAGE // 'lang-stat.required'    => 'Please slide to activate the language',                 // LANGUAGE REQUIRED STATUS MESSAGE // LANGUAGE STATUS OPTIONS MESSAGE