Skip to content

Instantly share code, notes, and snippets.

@lloy0076
Created March 28, 2017 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloy0076/594f2c37f1a124b8e30ff894a19f6373 to your computer and use it in GitHub Desktop.
Save lloy0076/594f2c37f1a124b8e30ff894a19f6373 to your computer and use it in GitHub Desktop.
Laravel Bootstrap.js
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
// This sticks jquery onto the window object.
window.$ = window.jQuery = require('jquery');
// These are other things I use in my projects.
window.pace = window.Pace = require('pace-progress');
require('bootstrap-sass');
require('jquery-slimscroll');
require('fastclick');
require('datatables.net');
require('datatables.net-buttons');
require('datatables.net-buttons/js/buttons.colVis.js'); // Column visibility
require('datatables.net-buttons/js/buttons.html5.js'); // HTML 5 file export
require('datatables.net-buttons/js/buttons.print.js'); // Print view button
require('jszip');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment