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

AbandonedArchivedLibrary

devools/laravel-meta-tags
=========================

A package to manage Header Meta Tags

v3.0.7(7y ago)114MITJavaScriptPHP &gt;=5.5.9

Since Aug 14Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (20)Used By (0)

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

[](#laravel-meta-tags)

[![Latest Stable Version](https://camo.githubusercontent.com/ef5914907235e83c5c59397ea7fe73d63cd6069aec1ce5679c484f12f44867f4/68747470733a2f2f706f7365722e707567782e6f72672f6465766f6f6c732f6c61726176656c2d6d6574612d746167732f762f737461626c652e706e67)](https://packagist.org/packages/devools/laravel-meta-tags) [![Total Downloads](https://camo.githubusercontent.com/1b377cff47add01ff340460e72d70f502e488b7e2ee10c638e83ae6e828a79b7/68747470733a2f2f706f7365722e707567782e6f72672f6465766f6f6c732f6c61726176656c2d6d6574612d746167732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/devools/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/devools/laravel-meta-tags)
- [Laravel MetaTags on GitHub](https://github.com/owex/laravel-meta-tags)

From the command line run

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

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

```
