erikgreasy/filament-redirects

Manage redirects in Filament

0.1.0 2024-11-02 18:39 UTC

This package is auto-updated.

Last update: 2024-11-02 18:42:17 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Manage HTTP redirects from Filament panel.

Installation

You can install the package via composer:

composer require erikgreasy/filament-redirects

Run the migrations

php artisan migrate

Add middleware to your application

// bootstrap/app.php

->withMiddleware(function (Middleware $middleware) {
    $middleware->append(\Erikgreasy\FilamentRedirects\Http\Middlewares\RedirectMiddleware::class);
})

Add plugin to your Filament Panel Provider

// eg. app/Providers/Filament/AdminPanelProvider.php

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugin(new \Erikgreasy\FilamentRedirects\FilamentRedirectsPlugin());
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.