Download the PHP package abdur-rahaman/laravel-seo without Composer
On this page you can find all versions of the php package abdur-rahaman/laravel-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abdur-rahaman/laravel-seo
More information about abdur-rahaman/laravel-seo
Files in abdur-rahaman/laravel-seo
Package laravel-seo
Short Description A comprehensive SEO management package for Laravel applications, inspired by Yoast SEO.
License MIT
Homepage https://github.com/abdurrahaman/laravel-seo
Informations about the package laravel-seo
Laravel SEO
SEO management package for Laravel (meta tags, social cards, sitemap, schema, analysis form).
Package: abdur-rahaman/laravel-seo
Requirements: PHP 8.3+, Laravel 11 / 12 / 13
Install
Publish assets only (CSS/JS for the admin form):
Initial
1. Config (optional)
Set defaults in config/laravel-seo.php or .env:
2. Admin layout assets
The SEO form needs Bootstrap 5, Font Awesome, and jQuery in your admin layout. Package CSS/JS:
Or rely on @stack('styles') / @stack('scripts') if your layout already yields them (the form component pushes these stacks).
Load input fields and plugins in form
Add the SEO form component to any create/edit view:
Form tabs & fields
| Tab | Fields |
|---|---|
| General SEO | Focus keyword, SEO title, meta description, additional keywords, canonical URL, Google preview |
| Social Media | OG title / description / image, Twitter title / description / image |
| Advanced | Robots index/follow, exclude from sitemap, canonical |
| Schema | Schema type, custom JSON-LD data |
| Analysis | SEO score + keyword / content checks |
Save SEO from the controller
Input names use the prefix: seo[title], seo[description], seo[focus_keyword], etc.
For a new model without SEO yet:
Setup in model
Use the HasSeo trait on any Eloquent model:
API on the model
Load model SEO for the current page
If the model has no SEO row yet, set fallbacks:
SEO tags in meta (front-end)
Put the helper once in your main layout <head>:
What gets rendered
<title>...</title><meta name="description" ...><link rel="canonical" ...><meta name="robots" ...>- Open Graph (
og:title,og:description,og:image, …) - Twitter / X cards (
twitter:card,twitter:title, …) - JSON-LD (
<script type="application/ld+json">)
Set tags without a model
Or:
Defaults from config/laravel-seo.php are used when a field is empty.
AI SEO Generator (ChatGPT)
Generate SEO title, meta description, focus keyword, and keywords from page content via OpenAI.
1. Enable in .env
Or use OPENAI_API_KEY instead of SEO_AI_API_KEY.
Publish config if you have not already:
2. Use the form
On the General SEO tab, click Generate with AI.
The button reads content from common fields (#body, textarea[name="body"], textarea[name="content"], TinyMCE/CKEditor) and fills:
- Focus keyword
- SEO title
- Meta description
- Additional keywords
Then review and save the form as usual.
3. Protect the endpoint (recommended)
In config/laravel-seo.php:
4. Republish assets after upgrade
All versions of laravel-seo with dependencies
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/view Version ^11.0|^12.0|^13.0
illuminate/routing Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/validation Version ^11.0|^12.0|^13.0
illuminate/cache Version ^11.0|^12.0|^13.0
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/filesystem Version ^11.0|^12.0|^13.0
illuminate/config Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0