PHPackages                             provision/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. provision/laravel-meta-tags

Abandoned → [provision/meta-tags](/?search=provision%2Fmeta-tags)Library

provision/laravel-meta-tags
===========================

A package to manage Header Meta Tags

3.0.7(9y ago)32.3kMITJavaScriptPHP &gt;=5.5.9

Since Aug 14Pushed 9y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (20)Used By (0)

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

[](#laravel-meta-tags)

[![Latest Stable Version](https://camo.githubusercontent.com/c0237fed9250b3d445800bb399aaca4154ee46770de82576827c84c4b59f26fd/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f6c61726176656c2d6d6574612d746167732f762f737461626c652e706e67)](https://packagist.org/packages/torann/laravel-meta-tags) [![Total Downloads](https://camo.githubusercontent.com/774791c9277eeb5e8c88e6ffbad50da5c8610dc9f6cc4f36beddd8d0d74b6890/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f6c61726176656c2d6d6574612d746167732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/torann/laravel-meta-tags)

With this package you can manage header Meta Tags from Laravel controllers.

---

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

[](#installation)

- [Laravel MetaTags on Packagist](https://packagist.org/packages/provision/meta-tags)

From the command line run

```
$ composer require provision/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(

    ProVision\MetaTags\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'   => ProVision\MetaTags\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="ProVision\MetaTags\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)

```
