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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -