[Vuejs]-Checked checkboxes with comma separated values from mysql database using laravel and vue js

0👍

Can you try providing your Vuejs data object? Meanwhile, you could do

<li v-for="t in types" style="display: inline-block; list-style:none; padding:7px">
  <input type="checkbox" :value="t.id" v-model="RestaurantObject.type_id" :checked="types.includes('RestaurantObject.type_id')">
  <label :for="t.id">@{{ t.type_name }}</label>
</li>

Leave a comment