Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 601 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 601 Bytes

Meta Tags

Installation

Add woren951/meta-tags to composer.json with a text editor:

"woren951/meta-tags": "dev-master"

Or via a console:

composer require woren951/meta-tags

This library requires PHP >=7.3.

Introduction

Example:

app('meta-tags')->title('Page title')
  ->description('Page description')
  ->canonical('https://github.com/woren951/meta-tags')
  ->robots('index,nofollow')
  ->image('https://picsum.photos/1200/630', 1200, 630, 'image/jpeg');

Render meta tags in a template as follows:

{!! app('meta-tags')->render() !!}