fix:trim input strings including symbols
This commit is contained in:
@@ -5,9 +5,11 @@ use Illuminate\Support\Collection;
|
|||||||
use Livewire\Attributes\Rule;
|
use Livewire\Attributes\Rule;
|
||||||
use Livewire\Volt\Component;
|
use Livewire\Volt\Component;
|
||||||
use Mary\Traits\Toast;
|
use Mary\Traits\Toast;
|
||||||
|
use App\Traits\WithTrimStrings;
|
||||||
|
|
||||||
new class extends Component {
|
new class extends Component {
|
||||||
use Toast;
|
use Toast;
|
||||||
|
use WithTrimStrings;
|
||||||
|
|
||||||
// props
|
// props
|
||||||
public ?Portfolio $portfolio;
|
public ?Portfolio $portfolio;
|
||||||
|
|||||||
@@ -9,9 +9,11 @@ use Livewire\Attributes\{Computed};
|
|||||||
use Livewire\Volt\Component;
|
use Livewire\Volt\Component;
|
||||||
use Mary\Traits\Toast;
|
use Mary\Traits\Toast;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
|
use App\Traits\WithTrimStrings;
|
||||||
|
|
||||||
new class extends Component {
|
new class extends Component {
|
||||||
use Toast;
|
use Toast;
|
||||||
|
use WithTrimStrings;
|
||||||
|
|
||||||
// props
|
// props
|
||||||
public ?Portfolio $portfolio;
|
public ?Portfolio $portfolio;
|
||||||
|
|||||||
Reference in New Issue
Block a user