skip to Main Content

Laravel – How to dispatch function in x-data alpine from livewire 3

I would like to call a function called "syncBudget" <div wire:key="extendForm" class="card p-3 border-0 shadow-sm space-y-3" x-data="() => { return { length: @entangle('length'), lengthType: @entangle('lengthType'), coupon: @entangle('coupon'), partnerPackage: {{ $partnerPackage }}, total: @entangle('total'), couponDiscount: @entangle('couponDiscount'), lengthDiscount: @entangle('lengthDiscount'), amountToPay: @entangle('amountToPay'), syncBudget:…

VIEW QUESTION

Php – html fields in livewire is not updating the data

public function removeCoreFunction($index){ unset($this->coreFunctions[$index]); $this->coreFunctions = array_values($this->coreFunctions); } so i have this function here which removes the specific index from the coreFunctions and makes it an array value again. It works as i expected in the function, however in my…

VIEW QUESTION

Laravel – Why custom multiselection element is not available after I selected item?

On laravel 10 site using docs at https://dev.to/koossaayy/laravel-livewire-multiple-selection-with-virtual-select-1f87 I try to make multiselection. I made it with some changes in the code. In component : <?php namespace AppLivewireAdmin; use AppModelsPermission; use IlluminateSupportStr; use LivewireComponent; class UsersPermissionsEditor extends Component { public…

VIEW QUESTION
Back To Top
Search