Hello
I am trying to get the value of the selected option but I get just null.
Livewire blade:
@foreach($statuses as $id => $status)
<option value="{{ $id }}" {{ (isset($ticket) && $ticket->status ? $ticket->status_id->id : old(‘status’)) == $id ? ‘selected’ : ‘’ }}>{{ $status }}
@endforeach
Livewire backend:
public $status;
and then
dd($this->status);
I just select one option. I don’t need multiple. What can be the problem?