Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ricardo's avatar
Level 48

Request add a non form field

  • Laravel Version: 5.3.29
  • PHP Version: 7.0 / 7.1.0
  • Database Driver & Version: mariaDB 10.0.24

Description:

I just change the hosting provider where the app was running without any issue (PHP 5.6) and I noticed that sending a POST request with:

$('form#queryForm').serialize()
"from=express&user_id=wzJ6v357mE23&exam=&last_vaccine=23%2F06%2F2016&last_desp=&appealling=1&dieta=&temp=&pv=&fc=&fr=&mucosas=&mental=&remarks="

the request()->all() has and additional field q

array:15 [
  "from" => "express"
  "user_id" => "wzJ6v357mE23"
  "exam" => ""
  "last_vaccine" => "23/06/2016"
  "last_desp" => ""
  "appealling" => "1"
  "dieta" => ""
  "temp" => ""
  "pv" => ""
  "fc" => ""
  "fr" => ""
  "mucosas" => ""
  "mental" => ""
  "remarks" => ""
  "q" => "/histories/storeExpress/y2X8YpoN7woL"
]

Any clue?

0 likes
0 replies

Please or to participate in this conversation.