Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, Laravel validation rules cannot be used to validate JavaScript objects. Laravel validation rules are designed to be used with PHP, on the server-side, while JavaScript runs on the client-side.

To validate JavaScript objects, you can either write custom validation functions or use third-party libraries such as Joi or Yup. These libraries provide a convenient way to define validation schemas for JavaScript objects and validate them.