text: // app.js
  
  require('./bootstrap');
  
  window.Vue = require('vue');
  
  import VueRouter from 'vue-router';
  Vue.use(VueRouter);
  
  import VueAxios from 'vue-axios';
  import axios from 'axios';
  
  import App from './App.vue';
  Vue.use(VueAxios, axios);
  Vue.use(VueRouter);
  Vue.use(VueAxios, axios);
  axios.defaults.baseURL = 'http://127.0.0.1:8000/api';
  
  import HomeComponent from './components/HomeComponent.vue';
  import CreateComponent from './components/CreateComponent.vue';
  import IndexComponent from './components/IndexComponent.vue';
  import EditComponent from './components/EditComponent.vue';
  import Dashboard from './components/DashboardComponent.vue';
  import Register from './components/RegisterComponent.vue';
  import Login from './components/LoginComponent.vue';
  
  const routes = [
      {
          name: 'home',
          path: '/',
          component: HomeComponent
      },
      {
          path: '/register',
          name: 'register',
          component: Register
      },
      {
          path: '/login',
          name: 'login',
          component: Login
      },
      {
          path: '/dashboard',
          name: 'dashboard',
          component: Dashboard,
          meta: {
              auth: true
          }
      },
      {
          name: 'create',
          path: '/create',
          component: CreateComponent
      },
      {
          name: 'posts',
          path: '/posts',
          component: IndexComponent
      },
      {
          name: 'edit',
          path: '/edit/:id',
          component: EditComponent
      }
  ];
  
  
  Vue.use(require('@websanova/vue-auth'), {
      auth: require('@websanova/vue-auth/drivers/auth/bearer.js'),
      http: require('@websanova/vue-auth/drivers/http/axios.1.x.js'),
      router: require('@websanova/vue-auth/drivers/router/vue-router.2.x.js'),
  });
  
  
  const router = new VueRouter({ mode: 'history', routes: routes});
  Vue.router = router;
  const app = new Vue(Vue.util.extend({ router }, App)).$mount('#app');
  