Validate Argentina CBU and CUIT/CUIL
Add the ArgentinaDataGenerator library to your composer.json
file:
composer require pablorsk/argentina-data-validator
<?php
echo \ArgentinaDataValidator\Cuit::isValid(20305423174)) ? 'valido' : 'no valido'; // valido
<?php
public function store(Request $request)
{
$validatedData = $request->validate([
'cuit' => 'cuit',
]);
// The entity post is valid...
}