NOTE: You should use the new way to get the assets always up to date.
Without the Larasset package
Add Composer scripts for automatic publication of assets
{
"scripts": {
"post-install-cmd": [
"php artisan asset:publish --path=\"vendor/helthe/turbolinks/Resources/public/js\" efficiently/turbolinks"
],
"post-update-cmd": [
"php artisan asset:publish --path=\"vendor/helthe/turbolinks/Resources/public/js\" efficiently/turbolinks"
]
}
}Add Javascript files into your project
Using turbolinks requires both the usage of the javascript library and the event listeners included with the component.
To enable turbolinks, all you need to do is add the compiled turbolinks javascript to your layout in the <head>section.
If you need to use jquery.turbolinks, you need to add it before turbolinks.js