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

ActiveComposer-package[Utility &amp; Helpers](/categories/utility)

fomvasss/laravel-meta-tags
==========================

A package to manage SEO (meta-tags, xml-fields, etc.)

3.5.2(3y ago)3028.9k↓44.4%8[1 issues](https://github.com/fomvasss/laravel-meta-tags/issues)MITPHPPHP &gt;=7.0.0

Since Oct 23Pushed 3y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (26)Used By (0)

**Development and support of this package is discontinued! Use a better solution [fomvasss/laravel-seo](https://github.com/fomvasss/laravel-seo)**

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

[](#laravel-meta-tags)

[![License](https://camo.githubusercontent.com/c1e23fecc88b8692ecfc7e3d8520169f5007975543fa7fd4972dd80e7a6cbffe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f666f6d76617373732f6c61726176656c2d6d6574612d746167732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fomvasss/laravel-meta-tags)[![Build Status](https://camo.githubusercontent.com/6b839d97c8cd4187f784b1fd2d8221f1d1ec50630f5e6a69fd0664ebd519f048/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f666f6d76617373732f6c61726176656c2d6d6574612d746167732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/fomvasss/laravel-meta-tags)[![Latest Stable Version](https://camo.githubusercontent.com/1f83b61c4cf01c1daab0b6f0092c2ada2643b19c156929a0c8ab4ffef6aaa964/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f6d76617373732f6c61726176656c2d6d6574612d746167732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fomvasss/laravel-meta-tags)[![Total Downloads](https://camo.githubusercontent.com/dfad4affe84f357d78df9b56b5920cc43a31a9dd17569166cca6a0590ae33178/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f6d76617373732f6c61726176656c2d6d6574612d746167732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/fomvasss/laravel-meta-tags)[![Quality Score](https://camo.githubusercontent.com/f6b471145abe205efa5cc9443863ac37683c2a013bacf21a8b7ea396271ceb60/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666f6d76617373732f6c61726176656c2d6d6574612d746167732e7376673f7374796c653d666f722d7468652d6261646765)](https://scrutinizer-ci.com/g/fomvasss/laravel-meta-tags)

With this package you can manage meta-tags and SEO-fields from Laravel controllers and "blade" template.

---

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

[](#installation)

Run from the command line:

```
composer require fomvasss/laravel-meta-tags
```

### Publish and settings

[](#publish-and-settings)

1. Publish assets - run this on the command line:

```
php artisan vendor:publish --provider="Fomvasss\LaravelMetaTags\ServiceProvider"
```

- A configuration file will be publish to `config/meta-tags.php`.
- A migration file will be publish to `database/migrations/DATE_NOW_create_meta_tags_table.php`.
- A customizable blade template file will be publish to `resources/views/vondor/meta-tags/tags.blade.php`.

2. Edit assets:

- Set available tags in`config/meta-tags.php` - uncomment needed
- If needed - set own model class for meta-tags in`config/meta-tags.php`
- Edit migration `meta_tags` file - set available field tags - uncomment needed

3. Run migration

```
php artisan migrate

```

---

Upgrading
---------

[](#upgrading)

When upgrading from v2 to v3, please see the [UPGRADING.md](UPGRADING.md)

---

Integrate &amp; usage
---------------------

[](#integrate--usage)

### Usage in Eloquent models: `app/Models/Article.php`

[](#usage-in-eloquent-models-appmodelsarticlephp)

Add `Metatagable` trait in your entity model:

```
