skip to Main Content

Opening a modal in livewire – laravel

I am designing a login form. when the user clicks on login button a modal should popup. I have used livewire emitsTo event. <button wire:click="$emitTo('login','loginModalOpen')" class="text-primary px-6 py-[13px] font-bold">Sign in</button>. This is the code for button. namespace AppLivewireV2Auth; use LivewireComponent;…

VIEW QUESTION

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

Laravel – syntax error, unexpected token "endfor" after composer update

I've updated the packages of my laravel project with "composer update", but after the update i have this error : syntax error, unexpected token "endfor". <div wire:loading.remove wire:target="lieuDepart"> @foreach ($lieuxDepart->where('type','AĆ©roport') as $lieu) <p wire:loading.remove wire:click="appliquerLieuDepart('{{ $lieu->nom }}','{{ $lieu->id }}')" x-on:click="lieuDepart='{{…

VIEW QUESTION
Back To Top
Search