Message Repository for Illuminate
composer require eventsauce/message-repository-for-illuminate
use EventSauce\MessageRepository\IlluminateMessageRepository\IlluminateUuidV4MessageRepository;
use EventSauce\MessageRepository\TableSchema\DefaultTableSchema;
use EventSauce\UuidEncoding\BinaryUuidEncoder;
$messageRepository = new IlluminateUuidV4MessageRepository(
connection: $connection,
tableName: $tableName,
serializer: $messageSerializer,
tableSchema: new DefaultTableSchema(), // optional
uuidEncoder: new BinaryUuidEncoder(), // optional
);