Why Laravel 5.3 output differents result? It's bugged on online request.
Thank you
Controller:
function index(Request $request){
return $request->all();
// return Input::all();
}
Local API GET :
http://localhost/blog/public/api/v0/posts?category=Travel
Return value :
{
"category": "Travel"
}
Online API GET : https://example.com/api/v0/posts?category=Travel
Return value:
{
"q": "/api/v0/posts?category=Travel"
}
arasmit2453 said:
you have same versions of laravel online and offline?.
i develop it offline then sync it online.
I've already found the bug,
I was using :
try_files $uri $uri/ /index.php?q=$request_uri;
in my nginx config. i've fixed it by changing it to :
try_files $uri $uri/ /index.php?$query_string;
Thank you
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community