Closed redbonzai closed 4 years ago
Could it be because you are accessing the "get" from the request object instead of the "post"?
The ->get() function is a function inherent within the Laravel API that allows us to select elements from the POST array.
The problem is that these variables aren't being put within the post array. They aren't being received on the server side.
Can you check with the browser (F12 > Network) what exactly is being sent? Because this is not reproducible.
Description
when I change the id, and name to a specific value, in my case : name: 'category_name', and id: 'category_name' it isn't carried in the request. The request object still has the name: 'value', and id: 'id'
how to reproduce
(add a jsfiddle/codepen example)
expected result
I expect the id, and the name to be changed and to be able to receive the name, id in the request object on the server side.
actual result
Environment
laravel environment Browser: Chrome OS: OS X