Download the PHP package ralphjsmit/laravel-filament-seo without Composer
On this page you can find all versions of the php package ralphjsmit/laravel-filament-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ralphjsmit/laravel-filament-seo
More information about ralphjsmit/laravel-filament-seo
Files in ralphjsmit/laravel-filament-seo
Package laravel-filament-seo
Short Description A package to combine the power of Laravel SEO and Filament Admin.
License MIT
Homepage https://github.com/ralphjsmit/laravel-filament-seo
Informations about the package laravel-filament-seo
Combine the power of Laravel SEO and Filament PHP.
This package is a convenient helper for using the laravel-seo package with Filament Admin and Forms.
It provides a simple component that returns a Filament fieldgroup to modify the title
, author
and description
fields of the SEO model. It automatically takes care of getting and saving all the data to the seo()
relationship, and you can thus use it anywhere, without additional configuration!
Here's an example of how the SEO
component looks like:
Installation
First, install the packages:
This will the require the ralphjsmit/laravel-seo
as well if you didn't have that installed. Be sure to check out the documentation of the main package and configure the values in the special seo.php
config file!
Next, make sure that the Eloquent Model you're editing uses the HasSEO
trait:
Now the SEO::make()
helper is available to use anywhere you want. Below are several examples how to use it:
In Filament Admin
This is an example of using this package in the classic Filament Admin.
It works for both creating and editing posts:
With Filament Forms
You can also use this package with the stand-alone Filament Forms package.
This is a simple example of how to setup a Livewire component that creates a new post. In this example, I wrapped the SEO
component in a Card.
And here's an example of how a Livewire component for editing a post might like like:
General
🐞 If you spot a bug, please submit a detailed issue and I'll try to fix it as soon as possible.
🔐 If you discover a vulnerability, please review our security policy.
🙌 If you want to contribute, please submit a pull request. All PRs will be fully credited. If you're unsure whether I'd accept your idea, feel free to contact me!
🙋♂️ Ralph J. Smit
All versions of laravel-filament-seo with dependencies
filament/filament Version ^3.0
illuminate/contracts Version ^9.52|^10.0|^11.0
ralphjsmit/laravel-seo Version ^1.6.2
spatie/laravel-package-tools Version ^1.9.2