PHPackages                             kfoobar/laravel-meta - 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. [Templating &amp; Views](/categories/templating)
4. /
5. kfoobar/laravel-meta

ActiveLibrary[Templating &amp; Views](/categories/templating)

kfoobar/laravel-meta
====================

Laravel package to manage title and meta tags

v1.0.1(5y ago)097MITPHPPHP &gt;=7.0

Since Feb 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/KFoobar/laravel-meta)[ Packagist](https://packagist.org/packages/kfoobar/laravel-meta)[ RSS](/packages/kfoobar-laravel-meta/feed)WikiDiscussions master Synced today

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

Laravel package to manage meta and title tags
=============================================

[](#laravel-package-to-manage-meta-and-title-tags)

This package makes it easier to work with HTML meta and title tags in Laravel 5 and Laravel 6.

The package can be used in any controller with the facade or in any blade file with the facade or the blade directives.

The package supports most meta tags. It also supports the `` tag and the `` tag for canonical since they are commonly used.

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

[](#installation)

Begin by installing the package with Composer from your command line:

```
$ composer require kfoobar/laravel-meta

```

### Laravel 5.5 or later

[](#laravel-55-or-later)

If you use auto-discovery, you don't need to do anything more to enable the package.

### Laravel 5.4 or earlier

[](#laravel-54-or-earlier)

You need to register the service provider with your Laravel application in `config/app.php`:

```
'providers' => [
    '...',
    KFoobar\LaravelMeta\MetaServiceProvider::class,
];
```

Also add the facade to the same config file:

```
'aliases' => [
    '...',
    'Meta'    => KFoobar\LaravelMeta\Facades\Meta::class,
];
```

How to use
----------

[](#how-to-use)

### How to use the facade

[](#how-to-use-the-facade)

If you want to set your tags in a controller, you'll need to add the namespace for the `Meta` facade.

```
