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

Related issues

YannPl picture YannPl  路  3Comments

shopblocks picture shopblocks  路  3Comments

jackmu95 picture jackmu95  路  3Comments

gabriellimo picture gabriellimo  路  3Comments

SachinAgarwal1337 picture SachinAgarwal1337  路  3Comments