handle input value in a custom Page view

I have a custom Page class ShiftPlanning extends Page the view contains a table which has an input select like:
`php
@for ($i=0;$i<count($weeksPerMonth['weeks']);$i++)
<td class="p-2">
<x-filament::input.wrapper>
<x-filament::input.select
wire:model="assignments_{{ $i }}"
wire:key="user_{{ $id }}_week_{{ $i }}">
<option value="">Assigna un torn</option>
@foreach($shifts as $shift)7
<option value="{{ $shift->id }}">{{ $shift->name }}</option>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>
</td>
@endfor
`php
@for ($i=0;$i<count($weeksPerMonth['weeks']);$i++)
<td class="p-2">
<x-filament::input.wrapper>
<x-filament::input.select
wire:model="assignments_{{ $i }}"
wire:key="user_{{ $id }}_week_{{ $i }}">
<option value="">Assigna un torn</option>
@foreach($shifts as $shift)7
<option value="{{ $shift->id }}">{{ $shift->name }}</option>
@endforeach
</x-filament::input.select>
</x-filament::input.wrapper>
</td>
@endfor
I'm trying to get the assignments wire:model property after each updated with
public function updated($field,$value) { dd(field); } updated() hook in the Page, but it does nothing.. how to achieve?
1 Reply
tesse05
tesse05OP6d ago
No description

Did you find this page helpful?