Laravel 5.1 customizing the paginator styling
<p>Is there a way to customize the paginator view in Laravel 5.1.</p>

<p>I want to add a first and last link in addition to the out of the box previous and next links. </p>

<p>I want to change the previous and next links to display icons instead of text but display text for screen readers. </p>

<p>I want to limit the number of page links to display only 5. </p>

<p>Below is what I'm trying to achieve.</p>

<pre><code>&lt;ul class="pagination no-margin pull-right"&gt;
    &lt;li class="disabled"&gt;
        &lt;a href="/"&gt;First&lt;/a&gt;
    &lt;/li&gt;
    &lt;li class="disabled"&gt;
        &lt;a href="#"&gt;
           &lt;span class="sr-only"&gt;Previous&lt;/span&gt;
           &lt;i class="fa fa-caret-left" aria-hidden="true"&gt;&lt;/i&gt;
        &lt;/a&gt;
    &lt;/li&gt;
    &lt;li class="active"&gt;
        &lt;a href="/"&gt;1&lt;/a&gt;
    &lt;/li&gt;
    &lt;li class=""&gt;
        &lt;a href="/"&gt;2&lt;/a&gt;
    &lt;/li&gt;
    &lt;li class=""&gt;
        &lt;a href="/"&gt;3&lt;/a&gt;
    &lt;/li&gt;
    &lt;li class=""&gt;
        &lt;a href="/"&gt;4&lt;/a&gt;
    &lt;/li&gt;
    &lt;li class=""&gt;
        &lt;a href="/"&gt;5&lt;/a&gt;
    &lt;/li&gt;
    &lt;li&gt;
        &lt;a href="#"&gt;
            &lt;span class="sr-only"&gt;Next&lt;/span&gt;
            &lt;i class="fa fa-caret-right" aria-hidden="true"&gt;&lt;/i&gt;
        &lt;/a&gt;
    &lt;/li&gt;
    &lt;li &gt;
        &lt;a href="/"&gt;Last&lt;/a&gt;
    &lt;/li&gt;
&lt;/ul&gt;
</code></pre>