Questions tagged [laravel-vue]
89 questions
73
votes
5 answers
How to fix the error "You may need an appropriate loader to handle this file type"
I have a fresh Laravel installation. On compiling files using npm run dev VUE I get a file error
"You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file"
Laravel Verion:…

Fredericka Hartman
- 835
- 1
- 7
- 13
3
votes
1 answer
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 for this. the plan is will save on the static…

Leopoldz
- 103
- 6
3
votes
2 answers
How to execute javascript in compiled view file (using View::render method)
is it possible to execute javascript code from a compiled view?
i need to write some js codes inside my index.blade file to handle some events.
i tried 3 way but none of them work.
Controller.
$advertisements = Advertisement::get();
$view =…

devmrh
- 1,171
- 4
- 19
- 46
2
votes
1 answer
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 debugging. Also these “unfriendly” errors are showing…

Steve
- 21
- 2
2
votes
1 answer
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 same scss files on compiling?
This is my code in…

Edmon Belchev
- 337
- 2
- 8
2
votes
2 answers
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, please help me if you have any ideas.
Thanks.

Reinis
- 477
- 1
- 5
- 13
2
votes
2 answers
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 can't get the product data, but the URL is correct…

Marky
- 55
- 1
- 2
- 11
2
votes
0 answers
Array to String conversion error on server using laravel eloquent Create
First of all I must tell you that my code is working on my localhost, the error I am getting is only on development server after deployment.
I am getting error on $list = Listing::create($data);
Here is my payload for $data
array:25 [
…

AbhimanuSharma
- 453
- 1
- 8
- 21
2
votes
0 answers
Laravel - Vue.js routes doesn't work properly
i'm pretty new to vue.js also i'm using laravel 8 and php 7.24 what i want to do is access pages without reloading. i've set up vue.js and i have two vue components which i need to route one to another. problem is i can see the home.vue file's…

Umut Ozan Ozyildirim
- 29
- 6
2
votes
3 answers
vuetify-loader 1.6 is incompatible with laravel mix, vue-loader 15 currently does not support vue rules with oneOf
I'm trying to install the vue on the laravel. I believe I got it, but when I run the npm run watch or npm run dev, it generates this error. I've tried several things and I can't solve
Error: [VueLoaderPlugin Error] vue-loader 15 currently does not…
user14050527
2
votes
1 answer
Using Laravel config file data inside vue component
I am developing a web app using laravel and vue . Now i want to use laravel config file data like app name inside vue component . How do i suppose to do that ?

udipta
- 33
- 9
2
votes
1 answer
how to use zurb foundation along side bootstrap in Laravel Vue?
I have a template built in zurb foundation for a sub-domain, i want to use foundation along side bootstrap in my laravel Vue app, entire site uses bootstrap but a subdomain template requires foundation. i have looked for solution but all of them are…

HassanFaizM Baloch
- 33
- 5
1
vote
0 answers
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.
in blade I used TinyMCE CDN and textarea tag…

arash dm
- 11
- 3
1
vote
0 answers
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 and my Laravel homepage would display as…

iamsubingyawali
- 193
- 1
- 2
- 15
1
vote
1 answer
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 and run the embedded laravel server for laravel app…

Meaulnes
- 357
- 6
- 20