0👍
For possible data sources you can take a look at their documentation: https://select2.org/data-sources/formats
Quick example would be:
var data = {{ $skus }};
$(".m-select2").select2({
width:'100%',
placeholder: "Select a value",
data: data
})
And html would be:
<select v-model="stock.product" class="form-control m-select2" name="sku_id[]" id=""></select>
Source:stackexchange.com