Skip to content

Instantly share code, notes, and snippets.

View breizhwave's full-sized avatar

Erwan Pianezza breizhwave

View GitHub Profile
@breizhwave
breizhwave / datatables_logic.blade.php
Created November 1, 2018 07:38 — forked from OwenMelbz/datatables_logic.blade.php
Backpack CRUD - Persistent Filters/Pages/Searches
<!-- DATA TABLES SCRIPT BREIZHWAVE20181009 from https://github.com/Laravel-Backpack/CRUD/issues/1457#issuecomment-404576891 -->
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" type="text/javascript"></script>
<script src="https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap.min.js" type="text/javascript"></script>
<script src="https://cdn.datatables.net/responsive/2.2.1/js/dataTables.responsive.min.js"></script>
<script src="https://cdn.datatables.net/responsive/2.2.1/js/responsive.bootstrap.min.js"></script>
<script>
var crud = {
enablePersistance: true,
route: 'DataTables_{{ trim($crud->getRoute(), '/') }}',