Skip to content
Advertisement

How to set onEachSide at controller level on laravel?

How to set onEachSide at controller level on laravel?

on blade we use:

{{ $records->onEachSide(2)->links() }}

How this can be done at controller level?

Advertisement

Answer

Record::paginate(10)->onEachSide(2);
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement