1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 09:54:03 +00:00

blade directive syntax

This commit is contained in:
Samuel Štancl 2021-05-24 18:02:58 +02:00 committed by GitHub
parent 04cfab679c
commit 74244018e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,9 +229,9 @@ public function show(Post $post)
This example uses a Blade view that sets global SEO config using the values that are passed to the view. This example uses a Blade view that sets global SEO config using the values that are passed to the view.
```html ```html
@seo('title', $page->name) @seo(['title' => $page->name])
@seo('description', $page->excerpt) @seo(['description' => $page->excerpt])
@seo('flipp', 'content') @seo(['flipp' => 'content'])
<h1>{{ $page->title }}</h1> <h1>{{ $page->title }}</h1>
<p>{{ $page->excerpt }}</p> <p>{{ $page->excerpt }}</p>