Search code examples
phplaraveladminvue.js

How can use vue-admin framework with laravel 5.3?


I install vue-admin by npm and now is in node_modules folder.

how can I import it to laravel in app.js file from node_modules.

can I use something like

import  { app }  from 'vue-admin/client/app'

Solution

  • you need to put in your app.js file this like this in your resource folder.

    var VueAdmin= require('vue-admin');

    Vue.use(VueAdmin);

    "vue-admin" depends what is the name of the folder or the module you want to include

    and then run your gulp or gulp webpack.