Skip to content
Advertisement

Laravel Select Query and Pagination

I’ve been trying to perform a multiple table based query on my laravel project and I got it done for a while. Now, I realized I had to add a paginator for a better user experience.

The thing is that I want to convert my SELECT Query so I can use the paginate method. The query looks like this:

JavaScript

$id is a dynamic value variable based on the user reference.

I need your help Laravel Masters, thank You.

Advertisement

Answer

You can try like that:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement