Support the ongoing development of →
posted 9 years ago
Last updated 10 months ago.

I have used frenzyapp/turbolinks package in the past and it worked really well. Check it out, it’s basically the same as PJAX.

Last updated 10 months ago.

I tried it today and really easy to implement. Here is it And on the link where you want to call pjax you add this:

<a data-pjax="#page-wrapper" class="{{ Route::currentRouteName() =='getAdmin' ? 'active' : '' }}" href="{{ URL::route('getAdmin') }}"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>

So for example my content of route named getAdmin will be loaded in #page-wrapper div.

In your master view you add scripts

{{ HTML::script('js2/jquery.js'); }}
{{ HTML::script('js2/jquery.pjax.js'); }}


<script type="text/javascript">
        $(function() {
Last updated 10 months ago.

Sign in to participate in this thread!


Your banner here too?

Panoplr panoplr Joined 27 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.