app/Http/Requests/LanguageRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'lang-name' => 'required|string|max:100',   
            'lang-abbr' => 'required|string|max:10',    
            'lang-dire' => 'required|in:ltr,rtl',       
            'lang-stat' => 'in:0,1',                    
        ];
    }
public function rules ( ) { return [ 'lang-name' => 'required|string|max:100' , 'lang-abbr' => 'required|string|max:10' , 'lang-dire' => 'required|in:ltr,rtl' , 'lang-stat' => 'in:0,1' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .
// LANGUAGES VALIDATION RULES OF CREATE // LANGUAGE NAME // LANGUAGE ABBREVIATION // LANGUAGE DIRECTION // LANGUAGE STATUS