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 @@ class GenerateFaviconsCommand extends Command
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 @@ class GenerateFaviconsCommand extends Command
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 @@ class GenerateFaviconsCommand extends Command
$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 @@ use Illuminate\Support\Str;
/**
* @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..278316c 100644
--- a/src/SEOServiceProvider.php
+++ b/src/SEOServiceProvider.php
@@ -17,7 +17,7 @@ class SEOServiceProvider extends ServiceProvider
public function boot(): void
{
- $this->loadViewsFrom(__DIR__ . '/../assets/views', 'seo');
+ $this->loadViewsFrom(__DIR__ . '/../views', 'seo');
if ($this->app->runningInConsole()) {
$this->commands([
diff --git a/assets/views/components/extensions/favicon.blade.php b/views/components/extensions/favicon.blade.php
similarity index 100%
rename from assets/views/components/extensions/favicon.blade.php
rename to views/components/extensions/favicon.blade.php
diff --git a/assets/views/components/extensions/twitter.blade.php b/views/components/extensions/twitter.blade.php
similarity index 100%
rename from assets/views/components/extensions/twitter.blade.php
rename to views/components/extensions/twitter.blade.php
diff --git a/assets/views/components/meta.blade.php b/views/components/meta.blade.php
similarity index 93%
rename from assets/views/components/meta.blade.php
rename to views/components/meta.blade.php
index 1b7f3fe..0060717 100644
--- a/assets/views/components/meta.blade.php
+++ b/views/components/meta.blade.php
@@ -12,6 +12,10 @@
@endif
+@if(seo('keywords'))
+
+@endif
+
@if(seo('type'))
@else