Skip to content
Tortue Torche edited this page Apr 12, 2015 · 10 revisions

If you don't use a asset pipeline package like Larasset you can use jQuery-Laravel with Elixir.

# Run theses commands in your Laravel root:
php artisan vendor:publish --provider="Efficiently\JqueryLaravel\JqueryLaravelServiceProvider" --force
php artisan vendor:publish --provider="Frenzy\Turbolinks\TurbolinksServiceProvider" --force
// Add this code in your gulpfile.js:
elixir(function(mix) {
  mix.scripts([
    'jquery.js',
    'jquery.turbolinks.js',
    'jquery_ujs.js',
    'app.js',
    'turbolinks.js'// Optional: if you want to use https://github.com/frenzyapp/turbolinks#readme
  ]);
});
Clone this wiki locally