Questions tagged [laravel-vue]
89 questions
0
votes
0 answers
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. (Vue-router)
I am having an issue while adding routes in Vue using Vue-router. I know it is a warning but still, I need to solve this issue, so your help will be appreciated. I am working with laravel vue and I am beginner.
I tried almost every StackOverflow…

Umar Hameed
- 45
- 8
0
votes
0 answers
Laravel: Append using vue js
Im new in vue js and trying to explore it. I have button and that button has an event click, once the button clicked, it will add an input field in my specific div.
Vue file
…

Angel
- 966
- 4
- 25
- 60
0
votes
2 answers
Vue js Page View Source not readable
How can we replace a component tag to render HTML code in view-source?

Dwarkesh Soni
- 289
- 3
- 16
0
votes
1 answer
How can I get URLs params from my Laravel Controller using Vue
I am trying to get the query string params. I have tried everything I can find on SO as well as general Google searches such as follows.
URL = http://example.com?companyId=1&subcompany=3;
Then in my controller:
$companyId =…

Premisoft
- 177
- 12
0
votes
1 answer
Laravel-Vue-Pagination error when trying to go to a different page
api.php
Route::get('/products', 'ProductsController@index');
Query:
$products = DB::table('sizes')
->join('products', 'sizes.id', '=', 'products.sizes')
->join('categories', 'products.category', '=', 'categories.id')
->select('products.*',…

Mike Shiv
- 203
- 4
- 12
0
votes
2 answers
Laravel with Vuejs run project without php artisan serve
I am developing a VueJs application in Laravel. In my local environment I have to use php artisan serve command to serve my project. In server I am using php artisan serve --host 0.0.0.0 --port 8000 command to run my project. I have configured…

balaraman
- 397
- 1
- 7
- 21
0
votes
0 answers
Laravel Vue Single Page Deployment on Cpanel
I host my laravel-vue project on Cpanel sub-folder. My welcome page is

Sandip Kumar
- 1
- 2
0
votes
0 answers
How to import js file(s) inside vue component (laravel)
I have a form.js stored in my resource/js/
class Form{
constructor(){
//more coding here
}
//more coding here
}
My question is how can I import the file above inside my .vue file? I tried these below:
//some html…

schutte
- 1,949
- 7
- 25
- 45
0
votes
2 answers
CORS policy: Request header field x-requested-with is not allowed by Access-Control-Allow-Headers in preflight response
full error message :
Access to XMLHttpRequest at 'https://api_url' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field x-requested-with is not allowed by Access-Control-Allow-Headers in preflight response.
I…
user10533192
0
votes
1 answer
Failed to mount component: template or render function not defined in Vuejs
I am working on Laravel and vuejs project, previously vue template was working fine but after upgrading Webpack and related dependencies to v4, it's showing below error:
[Vue warn]: Failed to mount component: template or render function not…

leaveme_alone
- 576
- 2
- 5
- 24
-1
votes
1 answer
Autocomplete search with barcode scanner using Laravel & Vuejs
I am using Laravel & Vuejs & want to create invoice using barcode scanner.everything is working fine except barcode scan. in this stage how to insert row using barcode scanner?
below my code examples.
addNewLine(){
this.form.items.push({
…

Aminul
- 67
- 9
-1
votes
2 answers
Shoud I load Vue JS manually in laravel?
I have added some Vue Code in a view in a Laravel project. Do I need to include the vuejs in the layout like:
Or laravel takes care of it in someway.
What I have…

M Reza Saberi
- 7,134
- 9
- 47
- 76
-3
votes
1 answer
get response in html tag in vuejs
please help me that how can I get data in Html tag like I get in console.loge,
I want to get this console.log(this.likeDes[0].like_dislike) in

Zia Yamin
- 942
- 2
- 10
- 34