[Vuejs]-Vue/laravel – passing data from blade to vue component

4πŸ‘

βœ…

The prop warning is because you have image in your data property

data() {
    return {
    image: '',
    formData:new FormData(),
    file: null
    }
},

you need to remove it from there and add it to the props property

props: {
    image: {
        type: String,
        default: ""
    }
},
data() {
    return {
    formData: new FormData(),
    file: null
    }
},

Leave a comment