Answers for "how to show old checked checkbox in laravel"

PHP
0

old function use in checkbox selected in laravel blade

// old selected checkbox in blade template using old function
<label class="form-check-inline">
    <input class="form-check-input" type="checkbox" name="hobby[]" value="1" 
	{{ (is_array(old('hobby')) && in_array(1, old('hobby'))) ? ' checked' : '' }}> football
</label>
//@sujay
Posted by: Guest on October-20-2020

Code answers related to "how to show old checked checkbox in laravel"

Browse Popular Code Answers by Language