PHPackages                             lostcause/laravel-seo-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lostcause/laravel-seo-meta

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

lostcause/laravel-seo-meta
==========================

Laravel seo meta

1.0.2(10y ago)06MITPHPPHP &gt;=5.4.0

Since Feb 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lostcause/Laravel-SeoMeta)[ Packagist](https://packagist.org/packages/lostcause/laravel-seo-meta)[ Docs](https://github.com/AM2studio/Laravel-SeoMeta)[ RSS](/packages/lostcause-laravel-seo-meta/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel-Seo Meta
================

[](#laravel-seo-meta)

Package for handling seo meta tags in Laravel apps

Install
-------

[](#install)

Via Composer

```
$ composer require am2studio/laravel-seo-meta
```

Usage
-----

[](#usage)

First run migration for this package (src/migration/):

```
Schema::create('seo_metas', function (Blueprint $table) {
	$table->increments('id');
	$table->string('model_type');
	$table->integer('model_id')->unsigned();
	$table->text('key');
	$table->text('value');

	$table->timestamps();
});
```

For each model which that use seo meta add trait "SeoMetaTrait" and implement interface "SeoMetaInterface"

```
use AM2Studio\Laravel\SeoMeta\SeoMetaTrait;
use AM2Studio\Laravel\SeoMeta\SeoMetaInterface;

class User implements  SeoMetaInterface
{
    use SeoMetaTrait;
```

Interface "SeoMetaInterface" have 2 function that model need to implement "seoMetasConfig()" and "seoMetas()"

seoMetasConfig() is configuration for meta data for model

seoMetas() is "hasMany" relation to seoMetas of model

```
public function seoMetasConfig()
{
	return [
		'title'         => ['generator' => 'example.com - '. $this->title],
		'description'   => ['generator' => 'green-rush.com - '. $this->title . ' - ' . $this->short_description,],
		'keywords'      => ['generator' => 'greenrush, dispensary, ' . $this->title . ', ' . $this->short_description,
		'edit'=> false],
		'og:image'      => ['generator' => ["http://i.stack.imgur.com/hEobN.jpg", "http://i.stack.imgur.com/hEobN2.jpg"]],
		'twitter:site'  => [],
	];
}

public function seoMetas()
{
	return $this->hasMany(SeoMeta::class, 'model_id')->where(['model_type' => __CLASS__]);
}
```

Each seo meta that you want model to use must be fefined here. List of possible seo meta tags:

```
title						-> string
description					-> string
keywords           			-> string
canonical      				-> string
article:published_time		-> string
article:section				-> string
og:description				-> string
og:title					-> string
og:url               		-> string
og:type             		-> string
og:locale           		-> string
og:locale:alternate			-> array
og:site_name        		-> string
og:image         			-> array
og:image:url       			-> array
og:image:size       		-> string
twitter:card       			-> string
twitter:title      			-> string
twitter:site				-> string
```

For each seo meta in config you define generator(how seo meta will be generated) and edit (if seo meta can be edited or will be always generated on model save, default - true)

Show form for meta seo deta on model:

```
{!! \AM2Studio\Laravel\SeoMeta\SeoMetaHelper::form($dispensary) !!}
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3776d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c8c1371eb657c386d07e0b7a073ab52af9277ba82a99e3d23d13a6614692bf0?d=identicon)[lostcause](/maintainers/lostcause)

---

Top Contributors

[![fico7489](https://avatars.githubusercontent.com/u/4559663?v=4)](https://github.com/fico7489 "fico7489 (7 commits)")[![anorgan](https://avatars.githubusercontent.com/u/1270389?v=4)](https://github.com/anorgan "anorgan (1 commits)")

---

Tags

AM2StudioLaravel seo meta

### Embed Badge

![Health badge](/badges/lostcause-laravel-seo-meta/health.svg)

```
[![Health](https://phpackages.com/badges/lostcause-laravel-seo-meta/health.svg)](https://phpackages.com/packages/lostcause-laravel-seo-meta)
```

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
