skip to Main Content

Livewire component not updating – Laravel

I have a simple component: <input type="text" wire:model="search"> {{ $search }} I load this like this: @livewire('searchbar') And this is my class: class Searchbar extends Component { public $search; public $results = []; public function updatedSearch() { info($this->search); $this->results =…

VIEW QUESTION

Laravel 9 required_if not validating

I'm using Laravel 9 and Livewire 2.0 I have an integer field called 'new_weight' that should validate required if the boolean checkbox 'stripped' is selected. Although 'stripped' is not selected, it's still validating as required. The validation $rules are being…

VIEW QUESTION
Back To Top
Search