@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Services\CountryCatalogue;
|
||||
use App\Services\ExistingBusinessDrafts;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -30,7 +31,8 @@ class StoreInterestRequestRequest extends FormRequest
|
||||
'investorType' => ['required', 'string', Rule::in([
|
||||
'individual', 'empresa', 'fundo', 'entidade_publica', 'outro',
|
||||
])],
|
||||
'country' => ['required', 'string', 'max:100'],
|
||||
'country' => ['required', 'string', 'max:100', ...($knownKey ? [] : [app(CountryCatalogue::class)->legacyCountryRule()])],
|
||||
'declared_origin_country_code' => ['nullable', app(CountryCatalogue::class)->rule()],
|
||||
'sectorInterest' => ['required', 'string', 'max:150'],
|
||||
// A known receipt can replay after withdrawal; the service verifies the payload hash.
|
||||
'opportunityReference' => ['nullable', 'string', 'max:80', ...($knownKey ? [] : [
|
||||
|
||||
Reference in New Issue
Block a user