$.ajax({
async: true,
cache: false,
type: "POST",
url: url,
dataType: "html",
ifModified: true,
timeout: 10000,
success: function (data) {
},
dataFilter: function (data, type) {
serverData = JSON.parse(data);
console.log(serverData);
}
});
public function like_to_api($type, $id, $value)
{
return [Auth::id()];
}