Category : laravel-vue

I am using VueJS and Laravel API SPA with Sanctum. While submitting my login details on localhost:8000/login i face no issue, however, while trying to run the same using 127.0.0.1:8000/login i get a message "CSRF token mismatch." my settings are as under .env file SESSION_DRIVER=cookie SANCTUM_STATEFUL_DOMAINS=127.0.0.1:8000,localhost:8000,localhost:3000,127.0.0.1:3000 SESSION_DOMAIN=localhost,127.0.0.1 cors: ‘paths’ => [‘api/*’, ‘sanctum/csrf-cookie’], ‘allowed_methods’ => [‘*’], ..

Read more

I am using vue in laravel. npm run watch is working fine to me, But when I am creating a build out of it, it throwing me the following error. > [email protected] build C:wamp64wwwlaravel-vuelaravel-vue-cli-3frontend > del -rf ../public/{js,css,img} && vue-cli-service build –no-clean Parameter format not correct – "public". npm ERR! code ELIFECYCLE npm ERR! errno ..

Read more

I am creating a single page application using laravel and vue. it’s not loading index component on page load. Welcome.blade.php <body> <div id="app"> <router-view></router-view> </div> <script src="{{asset(‘js/app.js’)}}"></script> </body> router.js file import Vue from ‘vue’; import VueRouter from ‘vue-router’; Vue.use(VueRouter) const routes = [ { path: ‘/’, component: require(‘./components/IndexComponent.vue’) }, { path: ‘/login’, component: require(‘./components/LoginComponent.vue’) } ..

Read more

I have a problem attaching blade content in the adminLTE dashboard starter package. I am also using vue js components and they are displayed well using router-link. Am managing users with pure laravel without vue Js and I want to include that blade in the same dashboard. Is this possible? my code: <li class="nav-item"> <router-link ..

Read more

We are experiencing problems after a Vue update. However, we cannot locate the error. Could anyone help us find this problem? This has occurred in the dashboard at a certain section where we show the payments from our users, so the admins can look into this. The code: addCollection: function (employee) { var self = ..

Read more

I try to take customer (name, address) based on phone number input. if customer is there then I want the name and address to auto-filled based on customer data we got. below are my code. my form <v-row> <v-col cols="12"> <v-text-field :rules="contactRules" v-model="form.contact" label="Contact" type="number" @input="searchCustomerContact"></v-text-field> </v-col> <v-col cols="12"> <v-text-field :rules="nameRules" v-model="form.name" label="Name"></v-text-field> </v-col> <v-col ..

Read more