skip to Main Content

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

Laravel – Checkbox text value receive on checkbox check in livewire

In my Livewire View @foreach ($diagnosisList as $row) <div class="col-6 mb-2"> <div class="d-flex align-items-center"> <label class="form-check mb-0 w-120px"> <input wire:model.debounce.1000ms='diagnoses.{{ $row->id }}' data-name="{{ $row->name }}" class="form-check-input" type="checkbox" value="{{ $row->id }}"> <span class="form-check-label font-13 fw-medium">{{ $row->name }}</span> </label> </div> </div> @endforeach…

VIEW QUESTION

Laravel – How to update a variable of the Livewire component class when window focus event happens?

MyLivewireComponent.php <?php namespace AppLivewire; use LivewireComponent; use AppModelsPerson; class MyLivewireComponent extends Component { public $persons; public function mount() { $this->persons = Person::all(); } public function render() { return view('livewire.my-livewire-component'); } } ?> When the browser's window got focused (focus event),…

VIEW QUESTION

I am using laravel livewire 3 get page not found

when click I get page not found and in consle error : POST http://localhost/livewire/update 404 (Not Found) counter.blade.php <div> <h1>{{ $this->count }}</h1> <button wire:click="increment">+</button> <button wire:click="decrement">-</button> </div> in blade I have the following : @section('custom-js') @livewireScripts @endsection @section('custom-css') @livewireStyles @endsection…

VIEW QUESTION
Back To Top
Search