Framework: Request parameter names with "." aren't working.

Created on 6 Feb 2020  路  1Comment  路  Source: laravel/framework

  • Laravel Version: v6.12.0
  • PHP Version: 7.3.11-1~deb10u1
  • Database Driver & Version: sqlite

Description:

request parameters with . (dot) in its names automatically converted to _ (underscore).

Steps To Reproduce:

make a request post request with names.test
observe request()->all() to identify problem.

Most helpful comment

PHP replaces periods with underscores. See the note at the end of Example #3 here: https://www.php.net/variables.external

>All comments

PHP replaces periods with underscores. See the note at the end of Example #3 here: https://www.php.net/variables.external

Was this page helpful?
0 / 5 - 0 ratings