0👍
I would verify exactly what data I send to the server (in browser > developer tools > network tab) or check what I receive in php, using var_dump, print_r or laravel’s dd function:
public function update(Request $request, $id)
{
dd($request->all());
...
}
It looks like you are trying to upload files via Axios. If this is the case you should also send a Content-type: multipart/form-data header, like so:
axios.post('upload_file', formData, {
headers: {
'Content-Type': 'multipart/form-data'
}
})
maybe have a look at this post: How to post a file from a form with Axios while you are at it.
Source:stackexchange.com