Download the PHP package am2studio/laravel-seo-meta without Composer
On this page you can find all versions of the php package am2studio/laravel-seo-meta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download am2studio/laravel-seo-meta
More information about am2studio/laravel-seo-meta
Files in am2studio/laravel-seo-meta
Package laravel-seo-meta
Short Description Laravel seo meta
License MIT
Homepage https://github.com/AM2studio/Laravel-SeoMeta
Informations about the package laravel-seo-meta
Laravel-Seo Meta
Package for handling seo meta tags in Laravel apps
Install
Via Composer
Usage
First run migration for this package (src/migration/):
For each model which that use seo meta add trait "SeoMetaTrait" and implement interface "SeoMetaInterface"
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
Each seo meta that you want model to use must be fefined here. List of possible seo meta tags:
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)
Finaly add "seoMeta" to Model -> fillable
Show form for meta seo deta on model:
Set data in controller:
Show meta in view :
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONDUCT for details.
License
The MIT License (MIT). Please see License File for more information.