Hello. I'm having a bit of a problem I'm hoping you fine folks can help with.
I have a controller with something like this in it:
public function table(Request $request)
{
$items = $request->items;
return view('table', compact('items'));
}
I am using parameter in uri string for pagination like this:
domain.com/table?items=40
This works fine and returns the number input into the string on my local dev environment, but when same files are hosted on a live web server the $request->items returns null. I'm pretty much a total newbie when it comes to web servers as this is my first time putting something live.
I do get a status code 200 and is a GET request.
Does anyone know why this might work local, but not in production environment?
Thank you.