All Questions
58 questions
0
votes
4
answers
2k
views
Call laravel controller from vue file
I created a component in vue file and I want to fetch data from laravel controller function.
Currently, I have used axios to fetch data. But can I directly call laravel controller function?
Thanks in ...
0
votes
1
answer
20
views
upload image to server modifying name
I am building a form with laravel 5.6 and where I save a name and a user photo,
but i need the photo to be stored with the username.
I show the code of my store
public function store(Request $request)
...
0
votes
2
answers
780
views
Vue.js Autocomplete
I am building a live search component with Vuejs. The search is working as expected. On keyup the method populates an unordered list. I am at a loss but need to:
Click on a selection from the search ...
0
votes
1
answer
59
views
Laravel and VueJs: Cannot set property 'cats' of undefined
I'm having this code in the blade:
<list-categories-component></list-categories-component>
and this template with vue code
<template>
<div class="container">
<div ...
0
votes
1
answer
215
views
Laravel 5 insert row with a foreign key ERROR
When I trying add new record to database Laravel returned error:
"message": "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'usu_idrol' cannot be null (SQL: insert into usuarios (cedula, ...
1
vote
1
answer
158
views
DOM does not show updated data of array in vue.js & laravel while axios call
after several attempts to find a solution here I decided to post it.
I am a beginner and using laravel + vue.js + mysql
Approach
I fetch data via an Axios call and update the data within the vue ...
0
votes
1
answer
481
views
Laravel & Vue: trying to store data with axios
The userflow is like this:
I'm trying to save data into a laravel backend controller with Axios on the route /api/car/store, but I'm recieving a 401 HTTP error when emitting the request.
I think ...
1
vote
0
answers
501
views
Axios returning 404 on laravel api request
ive a write a code to send a get request to server using vue js.but it return 404 not found exception thought the route is created on laravel.
axios.get('/api/v1/companies')
.then(...
0
votes
3
answers
3k
views
How to pass an object to axios.post to handle the request in Vue Component?
I'm trying to pass an object through an axios.post. But apparently, the way I'm doing it is wrong. I'm getting this error
Error: "Request failed with status code 500"
When I send the data as a normal ...
0
votes
1
answer
418
views
(Axios) HTTP POST request failed after two minutes, Laravel 5 + VueJS
I am trying to replicate data in the database for a specific user. It is almost 1000 rows that should be replicated. But my request gets failed with Empty response after 2 min. you can see in the ...
1
vote
1
answer
492
views
VUE: Issues with fetching data when I use Pagination
I have a a set of data which I can access for the first page. But as soon as I use the pagination and trying to press next page, then I can't access the data. I get the 401 issue.
created(){
...
0
votes
1
answer
1k
views
Axios one step behind vue's v-model
I've trouble finding out why my method logs the step before the actual one. So If I select 1 in a box and then 2, I'll get printed out nothing then 1.
Here is my code :
<b-form-select @input="...
0
votes
1
answer
2k
views
419 Error when attempting to post to my controller
I've been trying to submit a post request with axios to my projects controller and I keep getting an error 419(unknown status). Even though I'm passing the CSRF through headers to the controller. When ...
0
votes
0
answers
308
views
pdf dowload using axios - vuejs
ERROR getting ::
Uncaught (in promise) TypeError: window.URL.createObjectURL is not a function at eval
unable to download pdf
My code:
axios({
url: url,
...
2
votes
3
answers
4k
views
Axios unbale to catch error when server sends 422 in try-catch bloc
I'm using axios for my HTTP with Vue.js.But when I do the ajax call, everything goes well when server sends back response data with 200 success. But when there is errors,server does not execute the ...