Tagify is a package that helps you to use Tagify plugin in a simple way for livewire components.
Install the latest version using Composer.
1composer require pharaonic/livewire-tagify
Optional : Publish the JavaScript file
1php artisan vendor:publish --tag=livewire-tagify
This is how you can include it in your blade.
You have to include it after Livewire and Tagify Scripts, there is 2 ways you can use on of them.
1<!DOCTYPE html> 2<html lang="en"> 3 <head> 4 ... 5 <link href="https://unpkg.com/@yaireo/tagify/dist/tagify.css" rel="stylesheet" type="text/css"> 6 @livewireStyles 7 </head> 8 <body> 9 ...10 <script src="https://unpkg.com/@yaireo/tagify"></script>11 <script src="https://unpkg.com/@yaireo/tagify/dist/tagify.polyfills.min.js"></script>12 @livewireScripts13 14 <!-- Way 1 -->15 <x:pharaonic-tagify::scripts />16 17 <!-- Way 2 : Vendor Publishing REQURIED -->18 <script src="{{ asset('vendor/pharaonic/pharaonic.tagify.min.js') }}"></script>19 </body>20</html>