Hi
I cant get value from radiobuttons
<div class="col-span-2">
<span class="text-gray-700">Type</span>
<div class="mt-2">
<label class="inline-flex items-center">
<input type="radio" class="form-radio" value="1" wire:model="type" name="type" id="type">
<span class="ml-2">Type 1</span>
</label>
<label class="inline-flex items-center ml-6">
<input type="radio" class="form-radio" value="0" wire:model="type" name="type" id="type">
<span class="ml-2">Type 0</span>
</label>
</div>
</div>
in handling class
public function store(Request $request) { $this->type = false; $type_ = $request->input('type'); if($type_ == "1") $this->type = true; }
this part of code does not work
trying $type_ = $request->input(); and dd($type_); I see “type” = “1”
but $type_ = $request->input(‘type’); and dd($type_); returns null