Method links does not exist error

When using voyager with(‘translations’) and paginate together, this error occurs when creating pagination links.

Original:

Solution:

Solution 2:

 

Reference:

  1. https://laracasts.com/discuss/channels/laravel/links-method-doesnt-exist-after-sortbydesc-on-hasmany