PHPackages                             kekoapp/laravel-meta-tags - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kekoapp/laravel-meta-tags

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kekoapp/laravel-meta-tags
=========================

Easily set meta and OG tags from your Laravel 5.4 controllers

v5.4.3(9y ago)45001MITPHPPHP &gt;=5.5.9

Since Aug 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Cookizza/laravel-meta-tags)[ Packagist](https://packagist.org/packages/kekoapp/laravel-meta-tags)[ RSS](/packages/kekoapp-laravel-meta-tags/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (22)Used By (0)

Laravel Meta Tags
=================

[](#laravel-meta-tags)

With this package you can manage header Meta and OG Tags from Laravel controllers. Kept up to date for the latest Laravel versions.

While there is a few forks of this original package this is the only one kept updated for Laravel 5.4!

### Latest package version: 5.4.3

[](#latest-package-version-543)

### Current supported Laravel version: 5.4.\*

[](#current-supported-laravel-version-54)

---

Installation
------------

[](#installation)

From the command line run

```
$ composer require Cookizza/laravel-meta-tags

```

Once Meta Tags is installed you need to register the service provider with the application. Open up `config/app.php` and find the `providers` key.

```
'providers' => array(

    Cookizza\LaravelMetaTags\MetaTagsServiceProvider::class,

)
```

Meta Tags also ships with a facade which provides the static syntax for creating collections. You can register the facade in the `aliases` key of your `config/app.php` file.

```
'aliases' => array(

    'MetaTag'   => Cookizza\LaravelMetaTags\Facades\MetaTag::class,

)
```

### Publish the configurations

[](#publish-the-configurations)

Run this on the command line from the root of your project:

```
$ php artisan vendor:publish --provider="Cookizza\LaravelMetaTags\MetaTagsServiceProvider"

```

A configuration file will be publish to `config/meta-tags.php`.

Twitter Cards and OpenGraph
---------------------------

[](#twitter-cards-and-opengraph)

Various settings for these options can be found in the `config/meta-tags.php` file.

**Twitter Cards**

```
{!! MetaTag::twitterCard() !!}
```

**OpenGraph**

```
{!! MetaTag::openGraph() !!}
```

Examples
--------

[](#examples)

#### app/Http/Controllers/Controller.php

[](#apphttpcontrollerscontrollerphp)

```
