Skip to content

Commit e42ebbe

Browse files
committed
Merge branch 'release/3.0.4'
2 parents 3134f88 + c18fe02 commit e42ebbe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/filament-ptbr-form-fields.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
<?php
22

3-
return [];
3+
return [
4+
'viacep_url' => env('VIACEP_URL', 'viacep.com.br/ws/'),
5+
];

src/Cep.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function viaCep(string $mode = 'suffix', string $errorMessage = 'CEP inv
1919

2020
$livewire->validateOnly($component->getKey());
2121

22-
$request = Http::get("viacep.com.br/ws/$state/json/")->json();
22+
$request = Http::get(config("filament-ptbr-form-fields.viacep_url") . $state."/json/")->json();
2323

2424
foreach ($setFields as $key => $value) {
2525
$set($key, $request[$value] ?? null);

0 commit comments

Comments
 (0)