Search by

eii / arqon-redirect

amit-eiitech

SEO redirect management for Laravel and Filament.

v1.0.0 2026-12-03 13:15 UTC

This package is auto-updated.

Last update: 2026-12-03 13:19:58 UTC


README

SEO redirect management for Laravel and Filament 5. Manage source paths, destinations, HTTP redirect status codes, and whether each redirect is active from a Filament resource.

Requirements

  • PHP 8.2 or later
  • A Laravel application compatible with Filament 5
  • Filament 5

Installation

Install the package with Composer:

composer require eii/arqon-redirect

Laravel discovers the service provider automatically. It loads the package migration and adds redirect handling to Laravel's web middleware group. Run the application migrations:

php artisan migrate

Enable the package plugin on each Filament panel where redirect management should appear:

use Arqon\Redirect\ArqonRedirectPlugin;

return $panel
    ->plugin(ArqonRedirectPlugin::make());

The plugin registers the SeoRedirectResource with that panel. To publish the optional package configuration:

php artisan vendor:publish --tag=arqon-redirect-config

The middleware.enabled option defaults to true. Set it to false to disable automatic redirect checks on Laravel's web middleware group.

The published config/arqon-redirect.php also lets you customize the resource's navigation group and label, and its icons. Supported icon keys are seo-redirect, create, edit, delete, and delete_bulk. Icons default to the package's Heroicons; set a key to an icon identifier or to null to remove that icon.

Redirect behavior

  • Only GET and HEAD requests are checked.
  • Source paths are matched with or without a leading/trailing slash.
  • Supported status codes are 301, 302, 307, 308, and 410. A 410 response returns a Gone response; other statuses redirect to the configured target.
  • Destinations must be local absolute paths (for example, /services) or absolute HTTP(S) URLs. Protocol-relative URLs and other schemes are rejected by the Filament form.
  • External redirects are intentional functionality. Only trusted, authorized administrators should be able to create or edit redirect rules.
  • Access to the resource follows the host application's Filament and Laravel authorization setup. Define a SeoRedirectPolicy if panel users need different levels of access.

Security

Please report vulnerabilities privately using the contact details and instructions in SECURITY.md. Do not report security issues in public issue trackers.