php - I want to add query parameters like ?Hoge =false at the end of the URL in laravel 5 -


premise · want realize
want add query parameters like 

?hoge=false

@ end of url in laravel 5
problems occurring · error messages



if specify url such methodnotallowedhttpexception, not work.


↑ there no problem this

corresponding source code
routes / web.php

 route::get('/', 'hellocontroller@index'); 

hello controller

         public function index($hoge)
{
// code
}
php, laravel 5.3

you can't capture parameter directly, this:

use illuminate\http\request;  ...  public function index(request $request) {     $hoge = $request->input('hoge'); } 

Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -