In this example, we first include the Validator class and then define a variable $uuid with a sample UUID. We then use the Validator::isUuid method to check whether the given UUID is valid or not. If the UUID is valid, the script will output "Valid UUID". Otherwise, it will output "Invalid UUID". This code example uses the Laravel Validator package, which is a PHP package that provides an easy way to validate various types of data, including UUIDs.