问题 Is there a built-in way to validate UUID with a validation rule? I did not found anything about this in the "Available Validation Rules" documentation. 回答1: You can extend the validator helper in Laravel to add your custom validation rules, for example I've created my own validation rule to validate location using regex as follow: Validator::extend('location', function ($attribute, $value, $parameters, $validator) { return preg_match('/^-?\d{1,2}\.\d{6,}\s*,\s*-?\d{1,2}\.\d{6,}$/', $value); }