Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Nova.booting((Vue, router) => {
Vue.component('index-permission', require('./components/PermissionIndexField'))
Vue.component('detail-permission', require('./components/PermissionDetailField'))
Vue.component('form-permission', require('./components/PermissionFormField'))
Vue.component("multiselect", require("vue-multiselect").default);
Vue.component('permissions-tool', require('./components/PermissionsTool').default);
Vue.component("permissions", require('./components/Permissions').default);
router.addRoutes([
{
name: 'laravel-nova-governor-roles',
path: '/laravel-nova-governor/roles',
component: require('./components/Roles').default,
},
{
name: 'laravel-nova-governor-role-create',
path: '/laravel-nova-governor/roles/create',
component: require('./components/RoleCreate').default,
},
{
name: 'laravel-nova-governor-permissions',
path: '/laravel-nova-governor/permissions/:role',