lundi 19 octobre 2015

Laravel 5.1 GET url parameter key not correct passing to controller

I have a problem with getting GET params from URL.

If I have e.g

http://ift.tt/1GPEsJA

And than in controller I dd data from GET with

dd(Input::all());

Laravel return is

array:1 [▼
  "//route?page" => "2"
]

But should be

array:1 [▼
  "page" => "2"
]

The problem exists on Laravel 5.1 on 5.0 there is all ok.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire