copain
177
1
Vue

Auto Checked Checkbox value using vue.js

Posted 1 year ago by copain

On my edit page I'm trying to make my checkbox auto checked based on the permissions that I already assigned to my roles, I don't know how to make it work. Any idea? Currently with my code I'm getting unchecked checkbox with the list of all my permissions

Edit.blade

@foreach ($permissions as $permission) {{$permission->display_name}} @endforeach

var app = new Vue({ el: '#app', data: { permissionsSelected: [] } });

Please sign in or create an account to participate in this conversation.