app/Http/Requests/StoreCurso.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 [
            'nivel' => 'required',
            'cupos_max' => 'required|numeric|between:10,40'
        ];
    }
public function rules ( ) { return [ 'nivel' => 'required' , 'cupos_max' => 'required|numeric|between:10,40' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .