Skip to content

A Filament resource to create and maintain page redirects for your website.

License

Notifications You must be signed in to change notification settings

vdvcoder/filament-redirects

Repository files navigation

Create and Control Page Redirects through Filament

Latest Version on Packagist Total Downloads

A Filament resource to create and maintain page redirects for your website.

Installation

You can install the package via composer:

composer require jkharley/filament-redirects

Register the middleware within the web middleware group array inside of App/Http/Kernel.php

\JamesHarley\FilamentRedirects\Middleware\RedirectMiddleware::class

You can publish and run the migrations with:

php artisan vendor:publish --tag="filament-redirects-migrations"
php artisan migrate

Usage

Once setup you should now see a new redirects resource.

Screenshot 2022-04-22 at 11 51 44

You can create new redirects from within the new redirects resource and add a specified status code with the option to enable or disable the redirect.

Screenshot 2022-04-22 at 11 52 53

If you'd like to redirect from unregistered routes you can add a route fallback to the bottom of your routes in the web.php file. Here's an example:

Route::fallback(function () {
    return abort(404);
});

Changelog

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

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.

About

A Filament resource to create and maintain page redirects for your website.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages