Now this is just silly. I need your help on this again, guys.
It seems that doing redirecting the user from something.php?id=1 to somethings/1 is not an option.
So I need to be able to do this without the URL changing. Is that possible? I tried removing permanent from this line
rewrite ^ /somethings/$id? permanent;
But I'm just getting an application error.
NotFoundHttpException in Application.php line 1205:
I did some research and it looks like by replacing the $app->run line on public/index.php like so:
$request = Illuminate\Http\Request::capture();
$app->run($request);
The route is matched to this one:
$app->get('something.php', function () {
dd("HERE");
});
And I get "HERE" on the page. Unfortunately, I can't seem to get the ID. I feel like I'm so close, and yet I can't figure it out.
Please help me.