Too Long; Didn't Read
Laravel makes pagination an extremely simple process, you simply call <code class="markup--code markup--p-code">paginate()</code> on Eloquent and be done with it. Today I received a feature request where I had to allow the front-end team to decide the size of the page. It’s also a simple task, you just give it as a parameter <code class="markup--code markup--p-code">paginate($size);</code>. Something like this: