A Filament resource to create and maintain page redirects for your website.
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
Once setup you should now see a new redirects
resource.
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.
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);
});
Please see CHANGELOG for more information on what has changed recently.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.