File tree Expand file tree Collapse file tree 6 files changed +12
-7
lines changed
resources/views/components Expand file tree Collapse file tree 6 files changed +12
-7
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 12
12
<meta name =" description" content =" @seo (' description' )" />
13
13
@endif
14
14
15
+ @if (seo (' keywords' ) )
16
+ <meta name =" keywords" content =" @seo (' keywords' )" />
17
+ @endif
18
+
15
19
@if (seo (' type' ) )
16
20
<meta property =" og:type" content =" @seo (' type' )" />
17
21
@else
Original file line number Diff line number Diff line change @@ -20,21 +20,21 @@ public function handle(): int
20
20
if (! is_string ($ path )) {
21
21
$ this ->error ('The `from` argument must be a string. ' );
22
22
23
- return Command ::FAILURE ;
23
+ return self ::FAILURE ;
24
24
}
25
25
26
26
$ this ->info ('Generating favicons... ' );
27
27
28
28
if (! class_exists (ImageManager::class)) {
29
29
$ this ->error ('Intervention not available, please run `composer require intervention/image` ' );
30
30
31
- return Command ::FAILURE ;
31
+ return self ::FAILURE ;
32
32
}
33
33
34
34
if (! file_exists ($ path )) {
35
35
$ this ->error ("Given icon path ` {$ path }` does not exist. " );
36
36
37
- return Command ::FAILURE ;
37
+ return self ::FAILURE ;
38
38
}
39
39
40
40
// GD driver doesn't support .ico, that's why we use ImageMagick.
@@ -56,6 +56,6 @@ public function handle(): int
56
56
57
57
$ this ->info ('All favicons have been generated! ' );
58
58
59
- return Command ::SUCCESS ;
59
+ return self ::SUCCESS ;
60
60
}
61
61
}
Original file line number Diff line number Diff line change 11
11
/**
12
12
* @method $this title(string $title = null, ...$args) Set the title.
13
13
* @method $this description(string $description = null, ...$args) Set the description.
14
+ * @method $this keywords(string $keywords = null, ...$args) Set the keywords.
14
15
* @method $this url(string $url = null, ...$args) Set the canonical URL.
15
16
* @method $this site(string $site = null, ...$args) Set the site name.
16
17
* @method $this image(string $url = null, ...$args) Set the cover image.
17
18
* @method $this type(string $type = null, ...$args) Set the page type.
18
19
* @method $this locale(string $locale = null, ...$args) Set the page locale.
19
- * @method $this twitter(enabled $bool = true, ...$args) Enable the Twitter extension.
20
+ * @method $this twitter(bool $enabled = true, ...$args) Enable the Twitter extension.
20
21
* @method $this twitterCreator(string $username = null, ...$args) Set the Twitter author.
21
22
* @method $this twitterSite(string $username = null, ...$args) Set the Twitter author.
22
23
* @method $this twitterTitle(string $title = null, ...$args) Set the Twitter title.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public function register(): void
17
17
18
18
public function boot (): void
19
19
{
20
- $ this ->loadViewsFrom (__DIR__ . '/../assets /views ' , 'seo ' );
20
+ $ this ->loadViewsFrom (__DIR__ . '/../resources /views ' , 'seo ' );
21
21
22
22
if ($ this ->app ->runningInConsole ()) {
23
23
$ this ->commands ([
@@ -26,7 +26,7 @@ public function boot(): void
26
26
}
27
27
28
28
$ this ->publishes ([
29
- __DIR__ . '/../assets /views ' => resource_path ('views/vendor/seo ' ),
29
+ __DIR__ . '/../resources /views ' => resource_path ('views/vendor/seo ' ),
30
30
], 'seo-views ' );
31
31
32
32
Blade::directive ('seo ' , function ($ expression ) {
You can’t perform that action at this time.
0 commit comments