From d6fb3d367c0053c62ed69fde78bfac45dde53e5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 24 May 2021 19:16:27 +0200 Subject: [PATCH] syntax --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 46eb8a3..0c7f0c0 100644 --- a/README.md +++ b/README.md @@ -239,17 +239,17 @@ For example: Once your view is created, register the extension: ```php -seo()->extension('facebook', view: 'my-component') +seo()->extension('facebook', view: 'my-component'); // The extension will use ``` To set data for an extension (in our case `facebook`), simply prefix calls with the extension name in camelCase, or use the `->set()` method: ```php -seo()->facebookFoo('bar') -seo()->facebookTitle('About us') -seo()->set('facebook.description', 'We are a web development agency that ...') -seo(['facebook.description' => 'We are a web development agency that ...']) +seo()->facebookFoo('bar'); +seo()->facebookTitle('About us'); +seo()->set('facebook.description', 'We are a web development agency that ...'); +seo(['facebook.description' => 'We are a web development agency that ...']); ``` To disable an extension, set the second argument in the `extension()` call to false: