old function use in checkbox selected in laravel blade

Solutions on MaxInterview for old function use in checkbox selected in laravel blade by the best coders in the world

showing results for - "old function use in checkbox selected in laravel blade"
Fernando
12 May 2020
1// old selected checkbox in blade template using old function
2<label class="form-check-inline">
3    <input class="form-check-input" type="checkbox" name="hobby[]" value="1" 
4	{{ (is_array(old('hobby')) && in_array(1, old('hobby'))) ? ' checked' : '' }}> football
5</label>
6//@sujay