For some time I have a strange issue: with standard syntax
{{Form :: radio ('somename', 'someval', true, ['adparam' => 'someparam'])}}
the parameter 'checked' does not render on the local host (mac, vagrant / box, laravel 5.4), but it works on a remote server ...
I have already broken the brain, in which direction to dig since I did not even notice the moment when it started work incorrectly (in fact, it worked some time ago)?
UPD: A whole page is realy big, but the piece of code is
{{ Form::radio('certain', '1', true, ['data-case'=>$case->slug]) }} Возможный
{{ Form::radio('certain', '2', false, ['data-case'=>$case->slug]) }} Вероятный
{{ Form::radio('certain', '3', false, ['data-case'=>$case->slug]) }} Характерен для
{{ Form::radio('certain', '4', false, ['data-case'=>$case->slug]) }} Достоверный/Верифицированный
In fact, the issue shows up only when data in the controller matches with a view. If I have $case->certain
and radio certain
it does not work, but when I change radio name on some like certain2
it works but has no sense, of course. As I mentioned the issue exists only on localhost and just disturb to develop.
UPD: After fighting with debugging tools I have found that servers handle param in different ways. For localhost works:
{!! Form::radio('sex', 0, true) !!}
{!! Form::radio('sex', 1) !!}
{!! Form::radio('sex', 2) !!}
For production works:
{!! Form::radio('sex', '0', true) !!}
{!! Form::radio('sex', '1') !!}
{!! Form::radio('sex', '2') !!}
The Question: where is hidden a setting for this (etc 1!='1')?