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 [           
                'name' => 'required|min:3|max:50|unique:languages',
                'abbr' => 'required|min:2|max:5:languages',
                'native' => 'required|min:3|max:50|unique:languages',
                'locale' => 'required:languages',
                'iso_code' => 'required:languages',
                'flag' => 'required:languages',
                'rtl' => 'required:languages',
            ];
        }
public function rules ( ) { return [ 'name' => 'required|min:3|max:50|unique:languages' , 'abbr' => 'required|min:2|max:5:languages' , 'native' => 'required|min:3|max:50|unique:languages' , 'locale' => 'required:languages' , 'iso_code' => 'required:languages' , 'flag' => 'required:languages' , 'rtl' => 'required:languages' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .