---
name: zeus-hera
description: Use when installing, configuring, or customizing lara-zeus/hera SEO scan reports and score views on top of vormkracht10/laravel-seo-scanner.
---

# Lara Zeus Hera (`lara-zeus/hera`)

## Overview & Requirements
`lara-zeus/hera` is a paid Filament plugin that provides an admin UI (`SeoScanResource` and `ScoresRelationManager`) for `vormkracht10/laravel-seo-scanner` results.
- **PHP**: `^8.1`
- **Dependencies**: `lara-zeus/filament-plugin-tools` (`^3.0`), `vormkracht10/laravel-seo-scanner` (`^3.13`)

## Installation
Configure the Lara Zeus private Satis repository and license credentials in `auth.json` (from your `https://larazeus.com/dashboard` account):
```bash
composer config repositories.larazeus composer https://larazeus.com/satis
composer require lara-zeus/hera
```
Then follow `vormkracht10/laravel-seo-scanner` setup to publish and run its SEO scanner migrations and config.

## Configuration & Migrations
`HeraServiceProvider` registers no package migrations (tables come from `vormkracht10/laravel-seo-scanner`).
Publish the Hera config file if you want to override the `Scan` or `Score` models:
```bash
php artisan vendor:publish --tag=zeus-hera-config
```
`config/zeus-hera.php`:
```php
return [
    'models' => [
        'Scan' => \LaraZeus\Hera\Models\Scan::class,
        'Score' => \LaraZeus\Hera\Models\Score::class,
    ],
];
```

## Filament Panel Registration
Register `HeraPlugin` in your `PanelProvider`:
```php
use LaraZeus\Hera\HeraPlugin;

->plugins([
    HeraPlugin::make()
        ->models([
            'Scan' => \LaraZeus\Hera\Models\Scan::class,
            'Score' => \LaraZeus\Hera\Models\Score::class,
        ])
        ->navigationGroupLabel('Hera'),
])
```

## Core Usage
- **Admin UI**: Registers `LaraZeus\Hera\Filament\Resources\SeoScanResource` (`index` and `view` pages) showing scanned pages count, total checks, scan duration, failed checks badges, and per-URL `ScoresRelationManager`.
- **Extending models**: Subclass `LaraZeus\Hera\Models\Scan` (which extends `Vormkracht10\Seo\Models\SeoScan`) or `LaraZeus\Hera\Models\Score` (which extends `Vormkracht10\Seo\Models\SeoScore` with a `totalScores` attribute) and register them via `->models([...])` or `config/zeus-hera.php`.

## Common Pitfalls
- **Calling `->heraModels(...)`**: `HeraPlugin` uses `HasModels`, so the method is `->models([...])`, not `->heraModels([...])`.
- **Missing upstream scanner tables**: Installing `lara-zeus/hera` alone does not publish `seo_scans` / `seo_scores` tables; you must run `vormkracht10/laravel-seo-scanner` migrations first.
- **Custom models must inherit upstream models**: Replacement `Scan` and `Score` models should extend `Vormkracht10\Seo\Models\SeoScan` and `Vormkracht10\Seo\Models\SeoScore` (or Hera's `Scan`/`Score`).
