Answers for "laravel blade old value checkbox"

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 "laravel blade old value checkbox"

Browse Popular Code Answers by Language