Level 1
Sorry not a Laravel issue, was nginx
Must have try_files $uri $uri/ /index.php$is_args$args;
1 like
/* works */
Route::get('/', function() {
$users = OMM\Models\User::paginate(4);
return view('matches.test', ['users'=> $users]);
});
/* Does not work */
Route::get('match/test', function() {
$users = OMM\Models\User::paginate(4);
return view('matches.test', ['users'=> $users]);
});
In the 2nd example the "page" is not being passed using Debugbar request_query and request_request is empty, thus any link just shows the same 4 records .. However when using route / it works fine passing the page with the links, and shows the correct records.
I am not able to get any pagination working in any of my controllers which is why i tried to route / which seems to work.
Does anyone have any ideas?
Sorry not a Laravel issue, was nginx
Must have try_files $uri $uri/ /index.php$is_args$args;
Please or to participate in this conversation.