A validator for simple models of Laravel