I try to create a simple file upload with Vuejs and Laravel. But my 'b2b_file' variable seems to be null. in Vue component I have:
<b-form-file
v-model="b2b_file"
name="b2b_file"
multiple>
</b-form-file>
methods: {
this.b2b_file.map(element => {
this.productData.b2b_file.push(element)
})
}
console.log(this.productData.b2b_file) returns the fallowing: https://prnt.sc/1hox1c5
Due to the path being empty in my controller when I try $request->file('b2b_file')->store() i get message: "Call to a member function store() on null", exception: "Error"
What am I doing wrong?