{"size": 739, "ext": "js", "max_stars_repo_path": "resources/js/validate-campus.js", "max_stars_repo_name": "FernandoTumax/proyecto_laravel_ejemplo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/validate-campus.js", "max_issues_repo_name": "FernandoTumax/proyecto_laravel_ejemplo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/validate-campus.js", "max_forks_repo_name": "FernandoTumax/proyecto_laravel_ejemplo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.8387096774, "max_line_length": 110, "alphanum_fraction": 0.3653585927}
$("#formCampus").validate({
    rules: {
        code_campus: {
            required: true,
            remote: 
            {
                url: '/validate-campus',
                data: {
                    campus_id: function() {
                        return $( "#campus_id" ).val();
                    }
                }
            }            
        },
        name: {
            required: true,
            minlength: 5
        },
        state_id: {
            required: true
        },
        town_id: {
            required: true
        }
    }, 
    messages: {
        code_campus: {
            remote: "El código que ingreso ya existe en nuestros registros, por favor ingrese uno diferente.",
        }
    }
})