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)3129.8k↓42.6%8MITPHPPHP &gt;=7.0.0

Since Oct 23Pushed 2mo 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 3d ago

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

**Recommended: use [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)

Support
-------

[](#support)

If this package is useful to you, consider supporting its development:

[![Monobank](https://camo.githubusercontent.com/f4ca1cf4fd0a99ddfed314cb8f65140d8e83e324bd7c1f8476c52fe4ee6b25fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d4d6f6e6f62616e6b2d626c61636b)](https://send.monobank.ua/jar/5xsqtHvVrY)[![Ko-Fi](https://camo.githubusercontent.com/10764ec41c79959f08ccaf3e066c7a76c371961b1b1ff5b5f2a33aceef6e857a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d4b6f2d2d66692d4646354535423f6c6f676f3d6b6f2d6669266c6f676f436f6c6f723d7768697465)](https://ko-fi.com/fomvasss)[![USDT TRC20](https://camo.githubusercontent.com/214b4dc05bedda1c5129726b4450ef7f672ce6637865f8a8be83c03582bfdce8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d5553445425323054524332302d3236413137423f6c6f676f3d746574686572266c6f676f436f6c6f723d7768697465)](https://link.trustwallet.com/send?coin=195&address=THLgp6DxiAtbNHvgnKV56vk1L38UuUagKf&token_id=TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t)

> USDT TRC20 address: `THLgp6DxiAtbNHvgnKV56vk1L38UuUagKf`

This package lets you manage meta tags and SEO fields from Laravel controllers and Blade templates.

---

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

[](#installation)

Run from the command line:

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

### Publish and Configure

[](#publish-and-configure)

1. Publish assets from the command line:

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

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

2. Adjust published assets:

- Set available tags in `config/meta-tags.php` (uncomment what you need).
- Optionally set your own meta tag model class in `config/meta-tags.php`.
- Edit the `meta_tags` migration and uncomment the fields you need.

3. Run migration:

```
php artisan migrate
```

---

Upgrading
---------

[](#upgrading)

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

---

Integration &amp; Usage
-----------------------

[](#integration--usage)

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

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

Add `Metatagable` trait in your entity model:

```
