I have been testing route functionality of laravel, and I come across a problem which has no meaning at all. This is my route definition below
Route::get('/greet/{name}',function($st_name){
return 'Good morning ' . $st_name;
})->name('greeting');
Now, the problem is when I call the URL in the address bar it works fine except for my name. When I send my name as the query parameter it goes through the route definition and changes the first letter to capital in the address bar as well as in the return string. I have no idea why it behaves this way, and it happens every time I send my name as the query string.
I have cleared the route cache, and the view cache but they didn’t help.