Skip to content

Tag: validation

required not working

I’am using this code along with php code for a select and used required class to make it mandatory but it is not working. Does anyone can help me.I have included this html section along with php code. Answer Try to remove space value in your select category option

Laravel use Request validation with api

I’m trying to implement validation in my api like this: RideUpdateRequest: So how could I give a error message back in json (if the request validation fails)? Right now in postman I receive nothing back? –EDIT– response: Could I get something like this?: Answer If you take a look at the Form…

Is there a validation rule for “not present”?

I need to check if the key is not set in the array using Laravel validator. That would be the complete opposite of the “required” validation rule. Basically the array will be passed to update method if it passes the validation and I want to make sure one column will not be updated. Is there a way …