{!!form::text('first_name','')!!} {!!form::text('last_name','')!!} {!!form::radio('status','1')!!} {!!form::radio('status','2')!!} above radio button nothing selected, when submit input controller,
public function store(request $request) { $inputarray = $request->all(); echo "<pre>"; print_r($inputarray); exit; } below response input array:
array ( [_token] => 0yavny0xlb7ym4xsnkfr7lzqfwtqkybbum3tnkjq [first_name] => [last_name] => ) why radio input name(status) not shows in request. want below response.
array ( [_token] => 0yavny0xlb7ym4xsnkfr7lzqfwtqkybbum3tnkjq [first_name] => [last_name] => [status] => ) please help. in advance.
put hidden field status this.
{!!form::text('first_name','')!!} {!!form::text('last_name','')!!} {!!form::hidden('status','0')!!} {!!form::radio('status','1')!!} {!!form::radio('status','2')!!} if status not selected, value zero
Comments
Post a Comment