laravel pagination add query string code example Example: laravel pagination keep query string $result->appends(request()->query())->links()