old function use in checkbox selected in laravel blade 1

old function use in checkbox selected in laravel blade

// old selected checkbox in blade template using old function

//@sujay

Here is what the above code is Doing:
1. First, we check if the old input is an array.
2. If it is, we check if the value we want to check is in the array.
3. If it is, we add the checked attribute to the checkbox.

Similar Posts