Skip to main content

Prerequisites

Before you begin, you must have:
  • PHP 8.2+
  • Laravel 11 or 12
  • Filament v4

Install the package

1

Require the package

composer require usamamuneerchaudhary/filarank
2

Run the interactive installer

php artisan filarank:install
The interactive installer publishes the config and migration, offers to run migrate, then shows a checklist of your app/Models classes. For each model you pick it will:
  1. add the HasSeo trait (plus import) to the model,
  2. find the matching Filament resource anywhere under app/Filament, and — with your confirmation — append SeoFields::make() to the form and SeoScoreColumn::make() to the table, with imports.
Patching is deliberately conservative: files are only modified when the expected structure is found, every edit is idempotent (safe to re-run), and anything that can’t be patched automatically falls back to printed manual instructions.
Use --dry-run to preview the changes without writing anything to disk:
php artisan filarank:install --dry-run

Manual installation

Prefer to wire things up by hand? The manual steps below are exactly what the installer automates:
php artisan vendor:publish --tag=filarank-migrations
php artisan migrate
Optionally publish the config, views, or translations:
php artisan vendor:publish --tag=filarank-config
php artisan vendor:publish --tag=filarank-views
php artisan vendor:publish --tag=filarank-translations
Once installed, head to Usage to prepare your model, add the SEO form section, show the score column, and render tags on your frontend.