How to manually do the onEachSide() function in Laravel 5.5 (this does exist in 5.7)

Posted 2 months ago by Desory

I need to limit the pagination to 5 posts in total, 2 left, active, 2 right, in 5.7 this is easily doable with this function onEachSide(), but in 5.5 it does not yet exist. any help is appreciated

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.