diff --git a/resources/assets/js/components/SeoLengthCounter.vue b/resources/assets/js/components/SeoLengthCounter.vue
new file mode 100644
index 0000000..e3dbf02
--- /dev/null
+++ b/resources/assets/js/components/SeoLengthCounter.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
diff --git a/resources/assets/js/main.js b/resources/assets/js/main.js
new file mode 100644
index 0000000..bef716b
--- /dev/null
+++ b/resources/assets/js/main.js
@@ -0,0 +1,13 @@
+/**
+ * Register Vue components...
+ */
+
+import SeoLengthCounter from './components/SeoLengthCounter.vue';
+
+const SeoPlugins = {
+ install(Vue, options) {
+ Vue.component(SeoLengthCounter.name, SeoLengthCounter);
+ }
+};
+
+export default SeoPlugins;
diff --git a/src/SeoServiceProvider.php b/src/SeoServiceProvider.php
index c522238..094b381 100644
--- a/src/SeoServiceProvider.php
+++ b/src/SeoServiceProvider.php
@@ -58,6 +58,7 @@ public function boot()
$this->publishViews();
$this->publishTranslations();
$this->publishSidebarItems();
+ $this->publishAssets();
$this->loadMigrations();
}
@@ -73,4 +74,19 @@ public function provides()
//
];
}
+
+ /* -----------------------------------------------------------------
+ | Other Methods
+ | -----------------------------------------------------------------
+ */
+
+ /**
+ * Publish the assets.
+ */
+ private function publishAssets()
+ {
+ $this->publishes([
+ $this->getResourcesPath().DS.'assets'.DS => resource_path("assets/_{$this->vendor}/{$this->package}"),
+ ], 'assets');
+ }
}