https://g.co/gemini/share/02ccaa50d71d


// src/Entity/Transaction.php
namespace App\Entity;

use Symfony\Component\Validator\Constraints as Assert;

class Transaction
{
    #[Assert\Luhn(message: 'Please check your credit card number.')]
    protected string $cardNumber;
}

Powered by Froala Editor