I've just came across an issue with pagination when using the diff() function. The result actually paginates the data as expected, but I'm unable to use the $data->links() function within my blade file.
I'm essentially trying to get the difference of two collections and the paginate the result, heres what I'm using to do that (simplified version without any where clauses for clarity)
Note that this solution will always fetch all results and then paginate then. The second solution is less resource-intensive and in general a better solution.