91 questions
1
vote
0
answers
66
views
Error: Module '"vue"' has no exported member 'ref', 'computed'. etc
Does anyone experience this issue? I have laravel + vue 3 project and I recently use typescript. I installed these,
"typescript": "^5.9.3",
"vue-tsc": "^2.2.12"
...
0
votes
1
answer
108
views
How to load js in laravel vuejs 3
I'm new to Laravel and VueJS, and I want to include JavaScript files in my project. Can someone please tell me how to do that? I watched a video on YouTube and got a solution, but sometimes it's not ...
0
votes
1
answer
278
views
Laravel Vue Update page prop of user data After axios post
I have a custom column inside by user's table called avail_balance. When making a transaction, I want the available balance to update on the frontened WITHOUT having to reload the page. So after an ...
1
vote
0
answers
77
views
vue.js with laravel : Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../"
while integrating vue.js in laravel blade file facing this error
"Uncaught TypeError: Failed to resolve module specifier "vue".
Relative references must start with either "/",...
0
votes
0
answers
307
views
ERR_CONNECTION_REFUSED error in running Laravel and Vue
When I use Laravel 10 and vue3, I get the following error when running the local server
What is the cause and how can it be fixed?
Windows 11 and laragon operating system
`This site can’t be ...
0
votes
1
answer
75
views
Separate Laravel Vue to **only** Vue 2
Basically we already use: API for the routes, and auth-sanctum to login (so I guess it won't be a problem).
How to separate this to backend and frontend?
I already tested this with express (probably ...
0
votes
1
answer
2k
views
How can I get the FullCalendar vue3 component to refresh?
I'm using the FullCalendar vue3 component with Laravel Breeze/Vue, but I haven't been able to get the calendar to refresh when needed. I'd like the calendar to refresh after a select element changes ...
0
votes
1
answer
107
views
Restrict the pages in laravel when using socialite as login
In laravel have added socialite login for google,but i wanted them to be authenticated first before going to /studentTable route. And if they are not authenticated then they go back to login.
Im new ...
2
votes
1
answer
1k
views
How to debug unfriendly errors in Vue production build
I am developing a Laravel/Vuejs(3) app. For error capturing it was decided to use Sentry.
The problem is some of the errors in Sentry log are very unfriendly and have no usable stack trace for ...
0
votes
0
answers
164
views
Laravel Vue js Filters Custom Filters
Custom filters are not working, This is what I have tried so far,
This HTML code is for filters selection,
<div class="woocommerce-widget filter-list-widget">
<h3 class="...
0
votes
0
answers
122
views
v-model not updating data from Parent to child
I Have 2 Component. 1 Is Component Form as a parent, 1 another is 3 textarea and input.
But when i submit form method post, the validation from laravel send result error, if reward_type.product, ...
2
votes
1
answer
532
views
Importing Scss into vue.js views
I've noticed that if I want to use my _variables.scss I have to import them in every Vue file. My question is, how can I check if I load the same styles multiple times or does Vue saves only once the ...
0
votes
0
answers
100
views
No matching service worker detected even though I have a service worker and no PWA icon
i have try o convert laravel+vue.js to pwa. i have create manifest.json used workbox-cli for service worker. all install correctly but got error No matching service worker detected even though I have ...
1
vote
0
answers
179
views
how to binding TinyMCE (text editor for article) to Vue js in laravel?
hi in this case blade i used 'TinyMCE' for article text edit , and 'v-model' is setting to 'textarea' tag,I want to bind the text inserted in the text editor to Vue. I used v-model but it didn't work....
0
votes
1
answer
75
views
My datePicker is not working when i click after i empelment select with vue | Laravel - js
im new at Laravel And i have this problem when i use vue for select another data My date picker stopped working and when i click on it is not shown ,
this is the HTML code :
<div ...
0
votes
1
answer
321
views
vue function dont work when browser is refreshed
my vue functions dont work when i manually refresh browser page. but works when i navigate from another vue component to this component it works fine. Please below is my code
UPDATE:
im using router-...
0
votes
1
answer
534
views
router-link-active not applied to matching routes [duplicate]
I am currently in my Vue learning journey. I have come across a situation where I need to show my link as active for matching route too. For example: I have route /programs which shows Program link as ...
1
vote
0
answers
984
views
Run Laravel Vite Vue.js build without Artisan
I am a newbie learning Vue.js and I am using it with Laravel. I have decent experience with Laravel. Previously, without any frontend setup, I simply used to go to http://localhost/my-project/public ...
0
votes
1
answer
526
views
How to import LaravelVuePagination library in Vue3 Script Setup
When I try to import the library using script setup it doesn't work.
<script setup>
import LaravelVuePagination from "laravel-vue-pagination";
.....
<script>
Documentation has ...
0
votes
1
answer
1k
views
v-for table dynamically vuejs3
I´m doin a axios.get() to route laravel, that this route it´s ok, return all my data in json, and i´m tryiying to fill my table. I have a array that it´s filled with axios get.
if i do console.log() ...
1
vote
1
answer
535
views
Can login or register only with Firefox using Sanctum API authentication (CSRF token mismatch)
I am developing an SPA with Laravel 9, Vuejs 3 and Sanctum. I am newbie to vue and to Sanctum and I use the sanctum API authentication instead of the token authentication.
At this stage I am in dev ...
0
votes
1
answer
28
views
Cannot catch error in promise chaining Larave-vue2 SPA authentication
I try to authenticate in Laravel9 Sanctum a SPA using vue3 and vuex, not with the token authentification but with the SPA Authentication.
I am not very used to the javascript language, and even less ...
0
votes
1
answer
2k
views
Blank page is showing laravel and vue
Info
Using laravel and vue project
After installing composer install and npm install blank page is showing
Laravel 8, Vue [email protected], PHP 8 and ubuntu 20
Project location /www/html/project
Start the ...
0
votes
1
answer
227
views
Vue js not rendering VdtnetTable. What might be the issue
[Vue warn]: Error in render: "TypeError: Object(...) is not a function"
found in
---> <VdtnetTable>
<App> at resources/js/kodie/properties/Table.vue
<...
0
votes
1
answer
195
views
Vue :src is not displaying image, but shows in DOM
<template>
<div>
<Header></Header>
<div class=" flex justify-center items-center" v-if="!item && !product">
<div class=&...
1
vote
0
answers
4k
views
laravel vue pagination Property "$createElement" was accessed during render but is not defined on instance
I am trying to use laravel vue pagination on my vue3 typescript app
https://github.com/gilbitron/laravel-vue-pagination
I have installed the library and registered it on my index.ts
<template>
...
0
votes
0
answers
444
views
Select2 is not working on dynamically added field in Vue.js
In my vue laravel application ...i have dynamicllay added some select option by onclick function.
For the intial select option select2 is working fine but when i am trying to added more field ...
1
vote
0
answers
59
views
How to fetch the old value into the input field to update the data in laravel vue.js
I am beginner. In my laravel vue application i want to upadate the data. But before updating i want to fetch the existing value into the filed . I have tried copule of ways like v-model , ternary ...
0
votes
2
answers
6k
views
`Cannot read properties of undefined (reading 'component')`
error: Cannot read properties of undefined (reading 'component')
i am working vue.js3 + laravel8
I'm trying to register my reused my-button component as a global component
vue.js3 + lorevel8
my app.js
...
0
votes
1
answer
1k
views
Use Auth facade in API routes (Laravel 8)
I am looking to use Auth::user() in the CompanyController sitting in the api.php route file in Laravel 8. Like
Route::get('team', [CompanyController::class, 'index']);
But if I do so, I won't be able ...
4
votes
2
answers
15k
views
Vue 3, Uncaught TypeError: Vue.use is not a function
I am trying to upgrade the Laravel project's frontend into Vue 3 from vue 2.
During the process, I faced one issue
Uncaught TypeError: Vue.use is not a function
I don't know what the problem is, ...
2
votes
2
answers
2k
views
Vue components not displaying in production, works well in dev env
I have a laravel vue project working quite well in development but on the live shared hosting server, vue components are not showing up but the laravel views work just fine. There is no error in the ...
0
votes
1
answer
5k
views
How to get auth token automatically in laravel and vue?
I am using laravel passport for authentication in my laravel and vue.js ecommerce project.
After successful login, I want to redirect user to his/her dashboard.
Here is the vue dashboard page:
<...
0
votes
0
answers
121
views
Laravel + Vue V-IF updating in the database but not in the view
I have a project when I'm using Laravel 7.3 + Vue.
I am trying to assign a company to an internal employee. When I click the "Assign Company" button everything is fine and I can select the ...
0
votes
2
answers
553
views
Change the index of an array in array push
In the application, we implemented the laravel-vue-pagination and in our pagination our columns are checkbox and paid amount(input field) where the checkbox is what user want to pay the item.
Once the ...
1
vote
1
answer
370
views
Is it OK for an API endpoint to return multiple models (e.g when configuring create/update forms in the front end)?
I am switching from normal CRUD resource methods (which often return multiple models required to populate a form) to an API scheme. My question is whether the normal create method I use should be made ...
0
votes
1
answer
836
views
How to use router-link in vue js?
I am a beginner to laravel-vue and I have a problem with router-link when I get data from the database to view, all things work correctly, but when I set the path to router link, it does not work.
The ...
0
votes
2
answers
2k
views
Showing a spinner in vue js and bootsrap using v-show
I am using vue js 2.5.17 and vue router as front end and laravel as back end. I have a table with over 1000 record so before it shows I want to use a spinner or loader to show the progress. I have ...
1
vote
0
answers
681
views
Show PDF File on Vue Component Laravel VueJS Project
I Have Project With Upload PDF file into public directory and I will show that file like a google drive PDF viewer
Can anybody help me how can I do That ?
My project using Laravel 8 and VueJs 2
thank
0
votes
0
answers
198
views
Allow HTML Tags Through Axios Request from Vue to Laravel Controller
I have a text area as below:
<textarea class="from-control" name="body" id="body" v-html="pageForm.body" v-model="pageForm.body" rows="5&...
0
votes
1
answer
1k
views
How can i add / change multiple select option dynamically usign vuejs from same form
I have shared my code below.
<template>
<div class="productUnitPrice">
<div class="row">
<h4>Product Bundle</h4>
...
2
votes
2
answers
559
views
Component works only once using router-link - Laravel vue
I am working on a project that uses Laravel Vue SPA, and I got a problem accessing the data of the single product, it's only working when I click once, but when I select again with other product, I ...
0
votes
1
answer
54
views
Can't pass bcrypted value to a laravel blade vue
I'm trying to pass a bcrypt value from my controller to my model and then to my view, the bcrypt is : $2y$10$jTlSwN9nLTGSoaljl2ZIJu8wsbY2StYUJGjWz.7LUx6K20ATLj/m2,
as I passed it into my laravel blade'...
3
votes
1
answer
1k
views
VueJS/NuxtJs: How to upload image file and save it to the static folder of nuxtjs project?
Is it possible the image file must be save in the static folder of nuxtProject? Instead it will save in the backend server using axios. Sorry, I cant gave an example code because i dont have an idea ...
1
vote
0
answers
253
views
How to Programmatically append slots in vuejs app
I have a requirement to use vue js slot to inject the content anywhere in the dom.
The component is going to have props as below -
1. in: The target element. Should be able to accept a string selector,...
0
votes
1
answer
244
views
Validating image data in vue js using vform api
I am struggling to validate my data that has images using vue js and vform. My problem is, I am getting an error app.js:2137 Uncaught (in promise) TypeError: objectToFormData is not a function. How to ...
0
votes
1
answer
432
views
Validating using vform in Vue Js
am using Vue Js and Laravel in my application. My code has products and images. I am able to upload images using axios but when I add vform to validate all my images , no image is passed to the ...
0
votes
1
answer
582
views
cant use local image as src laravel-mix vuejs
I have a Vue component located at resources/js/modules/MyComponent.vue and inside it, I'm trying to use a local image as an src for the img tag, and the image is located at public/assets/myproj/image/...
0
votes
0
answers
278
views
Dynamically updating the passed parameter in the vue component
I have component:
<g :title="computeString"></g>
(standart element)
I use computed property to update it
computeString:{
get: function () {
console.log(this.cage....
1
vote
2
answers
395
views
Make a layout container for all blades
I am creating a laravel-vuejs mix version of my vanilla vuejs app and in my vuejs app, I have a master component container for all my components. it goes like this...
MainContainer.vue
<template>...