Hion Coding - Blogs share everything
  • HOME
  • ABOUT
  • POSTS
  • CONTACT
  • TOOLS
    CÂU HỎI VÕ ĐÀI TỐI THƯỢNG CONVERT IMAGE TO WEBP
Turbolink is not working in Livewire version 2

Turbolink is not working in Livewire version 2

Hion Coding - Blogs share everything
Admin Hion Coding Blogs vochilong.work@gmail.com
13th October 2023

Livewire Laravel

Turbolink is not working in Livewire version 2

Turbolink is not working in Livewire version 2 - Livewire no longer supports Turbolinks out of the box. If you want to continue using Turbolinks in your Livewire application, you will have to include the Turbolinks adapter alongside Livewire's JavaScript assets:

Livewire Version 1 supported Turbolinks internally. Livewire Version 2 has removed internal support and extracted it into this plugin.
The goal of this livewire version 2 is to provide full Turbolinks/Turbo support in Livewire.

  1. add hotwired/turbo package on your layout below @livewireScripts
  2. add livewire/turbolinks package on your layout below hotwired/turbo package
<script type="module">
    import hotwiredTurbo from 'https://cdn.skypack.dev/@hotwired/turbo';
</script>

<script src="https://cdn.jsdelivr.net/gh/livewire/turbolinks@v0.1.x/dist/livewire-turbolinks.js" data-turbolinks-eval="false" data-turbo-eval="false"></script>

 


The list of articles is being updated!!!
Hion Coding - Blogs share everything


© 2025 Hion Coding DMCA.com Protection Status