diff --git a/assets/views/components/extensions/favicon.blade.php b/resources/views/components/extensions/favicon.blade.php
similarity index 100%
rename from assets/views/components/extensions/favicon.blade.php
rename to resources/views/components/extensions/favicon.blade.php
diff --git a/assets/views/components/extensions/twitter.blade.php b/resources/views/components/extensions/twitter.blade.php
similarity index 100%
rename from assets/views/components/extensions/twitter.blade.php
rename to resources/views/components/extensions/twitter.blade.php
diff --git a/assets/views/components/meta.blade.php b/resources/views/components/meta.blade.php
similarity index 92%
rename from assets/views/components/meta.blade.php
rename to resources/views/components/meta.blade.php
index 1b7f3fe..5a6b493 100644
--- a/assets/views/components/meta.blade.php
+++ b/resources/views/components/meta.blade.php
@@ -12,6 +12,10 @@
@endif
+@if(seo('keywords'))
+
+@endif
+
@if(seo('type'))
@else
diff --git a/src/Commands/GenerateFaviconsCommand.php b/src/Commands/GenerateFaviconsCommand.php
index da4628b..7ec7896 100644
--- a/src/Commands/GenerateFaviconsCommand.php
+++ b/src/Commands/GenerateFaviconsCommand.php
@@ -20,7 +20,7 @@ public function handle(): int
if (! is_string($path)) {
$this->error('The `from` argument must be a string.');
- return Command::FAILURE;
+ return self::FAILURE;
}
$this->info('Generating favicons...');
@@ -28,13 +28,13 @@ public function handle(): int
if (! class_exists(ImageManager::class)) {
$this->error('Intervention not available, please run `composer require intervention/image`');
- return Command::FAILURE;
+ return self::FAILURE;
}
if (! file_exists($path)) {
$this->error("Given icon path `{$path}` does not exist.");
- return Command::FAILURE;
+ return self::FAILURE;
}
// GD driver doesn't support .ico, that's why we use ImageMagick.
@@ -56,6 +56,6 @@ public function handle(): int
$this->info('All favicons have been generated!');
- return Command::SUCCESS;
+ return self::SUCCESS;
}
}
diff --git a/src/SEOManager.php b/src/SEOManager.php
index 0e99e8f..b8d1422 100644
--- a/src/SEOManager.php
+++ b/src/SEOManager.php
@@ -11,12 +11,13 @@
/**
* @method $this title(string $title = null, ...$args) Set the title.
* @method $this description(string $description = null, ...$args) Set the description.
+ * @method $this keywords(string $keywords = null, ...$args) Set the keywords.
* @method $this url(string $url = null, ...$args) Set the canonical URL.
* @method $this site(string $site = null, ...$args) Set the site name.
* @method $this image(string $url = null, ...$args) Set the cover image.
* @method $this type(string $type = null, ...$args) Set the page type.
* @method $this locale(string $locale = null, ...$args) Set the page locale.
- * @method $this twitter(enabled $bool = true, ...$args) Enable the Twitter extension.
+ * @method $this twitter(bool $enabled = true, ...$args) Enable the Twitter extension.
* @method $this twitterCreator(string $username = null, ...$args) Set the Twitter author.
* @method $this twitterSite(string $username = null, ...$args) Set the Twitter author.
* @method $this twitterTitle(string $title = null, ...$args) Set the Twitter title.
diff --git a/src/SEOServiceProvider.php b/src/SEOServiceProvider.php
index dad6943..a7eace4 100644
--- a/src/SEOServiceProvider.php
+++ b/src/SEOServiceProvider.php
@@ -17,7 +17,7 @@ public function register(): void
public function boot(): void
{
- $this->loadViewsFrom(__DIR__ . '/../assets/views', 'seo');
+ $this->loadViewsFrom(__DIR__ . '/../resources/views', 'seo');
if ($this->app->runningInConsole()) {
$this->commands([
@@ -26,7 +26,7 @@ public function boot(): void
}
$this->publishes([
- __DIR__ . '/../assets/views' => resource_path('views/vendor/seo'),
+ __DIR__ . '/../resources/views' => resource_path('views/vendor/seo'),
], 'seo-views');
Blade::directive('seo', function ($expression) {