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

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

eadortsu/laravel-meta-tags
==========================

A package to manage Header Meta Tags

v3.0.5(7y ago)041MITJavaScriptPHP &gt;=5.5.9

Since Aug 14Pushed 5y agoCompare

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

READMEChangelogDependencies (3)Versions (18)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/torann/laravel-meta-tags)
- [Laravel MetaTags on GitHub](https://github.com/Torann/laravel-meta-tags)

From the command line run

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

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

```
