azonmedia / vue-router
Create and dump Vue routes from PHP
dev-master
2020-08-31 09:53 UTC
Requires
- php: >=7.2.0
- azonmedia/components: dev-master
- azonmedia/exceptions: dev-master
- azonmedia/utilities: dev-master
This package is auto-updated.
Last update: 2024-10-29 05:59:58 UTC
README
Description
Generates Vue router javascript arrays like:
export default [ { path: '/', name: 'Home', component: () => import('@GuzabaPlatform.Platform/views/Home.vue'), }, { path: '/admin', name: 'Admin Home', component: () => import('@GuzabaPlatform.Platform/views/Admin/Home.vue'), children: [ { path: 'components', name: 'Components', component: () => import('@GuzabaPlatform.Platform/views/Admin/Components/Components.vue'), meta: { 'in_navigation': '1', 'additional_template': '@GuzabaPlatform.Platform/views/Admin/Components/NavigationHook.vue', } }, { path: 'request-caching', name: 'Request caching', component: () => import('@GuzabaPlatform.RequestCaching/Admin.vue'), meta: { 'in_navigation': '1', } }, { path: 'crud', name: 'CRUD', component: () => import('@GuzabaPlatform.Crud/Crud.vue'), meta: { 'in_navigation': '1', 'additional_template': '@GuzabaPlatform.Crud/NavigationHook.vue', } }, { path: 'crud/:class', name: 'CRUD class', component: () => import('@GuzabaPlatform.Crud/Crud.vue'), }, ] }, ];
Installation
$ composer require azonmedia/vue-router