Download the PHP package michael-rubel/laravel-seo-manager without Composer
On this page you can find all versions of the php package michael-rubel/laravel-seo-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michael-rubel/laravel-seo-manager
More information about michael-rubel/laravel-seo-manager
Files in michael-rubel/laravel-seo-manager
Package laravel-seo-manager
Short Description Provides simple functionality to manage SEO tags based on URL path within your Laravel application.
License MIT
Homepage https://github.com/michael-rubel/laravel-seo-manager
Informations about the package laravel-seo-manager
Laravel SEO Manager
This package provides simple functionality to manage SEO tags based on URL path within your Laravel application.
You can put the URL path available within your app with the JSON of tags you want to get in the view under the specified path. The wildcard *
notation is available as well. You will get the manager variable with tags for each view as a Collection
instance by default. The model to use by the package and variable name is customizable in the config file.
The package requires PHP ^8.x
and Laravel ^8.71
or ^9.0
.
StandWithUkraine
Installation
Install the package using composer:
Publish the migration:
Publish the config file:
Usage
After publishing the config and running migrations, you can apply URLs in the seo_tags
table using following patterns:
/test-url/*
/test-url/my-target
/test-url/any-target/*
Wildcard *
has a lower priority than explicit define.
- Note: If you're going to override the model to use a different database structure, make sure your model implements SeoTagContract. The package uses two simple methods to get the database columns.
Contributing
If you see the way we can improve the package, you're free to open an issue or pull request.
Testing
All versions of laravel-seo-manager with dependencies
laravel/framework Version ^8.71|^9.0
spatie/laravel-package-tools Version ^1.10
michael-rubel/laravel-enhanced-container Version ^6.0|^7.0|^8.0