your {home} param is not a query param. only query params can fetched with Input::get or Request::get
the path params are passed on to the controller method as method params.
Your method should look like this:
public function home(Request $request, $home) {
return $home;
}
If you route is
Route::get('home/{home}', 'HomeController@home');
then your controller function home
will be
public function home($variable)
{
dd($variable
}
Meaning that if you access your site with home/hi+there
you will see hi there
as the variable's value.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community