novius/laravel-nova-redirect-manager

This package provides an interface to manage redirects with Nova
17,791 3
Install
composer require novius/laravel-nova-redirect-manager
Latest Version:2.0.1
PHP:>=7.3.0
License:AGPL-3.0-or-later
Last Updated:May 12, 2026
Links: GitHub  ·  Packagist
Maintainer: novius

Nova Redirect Manager

Novius CI Packagist Release Licence

This package provides a Nova Tool to manage redirects with spatie/laravel-missing-page-redirector.

Requirements

  • PHP >= 7.3
  • Laravel Nova >= 4.0
  • Laravel Framework >= 8.0

Installation

You can install the package via composer:

composer require novius/laravel-nova-redirect-manager

The package will automatically register itself.

Next, launch migrations :

php artisan migrate

Next, you must register the Spatie\MissingPageRedirector\RedirectsMissingPages middleware and publish the config file : See spatie/laravel-missing-page-redirector for more information.

Configuration

In the config/missing-page-redirector.php file, change the redirector key to Novius\LaravelNovaRedirectManager\Redirector\DatabaseRedirector::class :


return [
    //...

    /*
     * This is the class responsible for providing the URLs which must be redirected.
     * The only requirement for the redirector is that it needs to implement the
     * `Spatie\MissingPageRedirector\Redirector\Redirector`-interface
     */
    'redirector' => \Novius\LaravelNovaRedirectManager\Redirector\DatabaseRedirector::class,
];

You can also publish the configuration file if you want to change values for this package :

php artisan vendor:publish --provider="Novius\LaravelNovaRedirectManager\RedirectManagerServiceProvider" --tag=config
return [

    /*
     * This is the model used by the database redirector
     */
    'redirector_model' => \Novius\LaravelNovaRedirectManager\Models\Redirect::class,

    /*
     * This is the nova resource used to manage Redirect items
     */
    'redirect_nova_resource' => \Novius\LaravelNovaRedirectManager\Resources\Redirect::class,

    /*
     * This max length rule for Redirect item
     */
    'redirect_url_max_length' => 1000,
];

Language

You can also publish the lang files :

php artisan vendor:publish --provider="Novius\LaravelNovaRedirectManager\RedirectManagerServiceProvider" --tag=lang

Lint

Run php-cs with:

composer run-script lint

Contributing

Contributions are welcome! Leave an issue on Github, or create a Pull Request.

Licence

This package is under GNU Affero General Public License v3 or (at your option) any later version.

Related Packages

maatwebsite/laravel-nova-excel

Supercharged Excel exports for Laravel Nova Resources

7,146,224 401
vyuldashev/nova-permission

A Laravel Nova tool for Spatie's Permission library.

2,643,011 429
spatie/nova-tail-tool

A Laravel Nova tool to display the application log.

129,871 119
spatie/nova-tags-field

A tags field for Nova apps

2,289,627 301
spatie/nova-backup-tool

A Laravel Nova tool to backup your application.

606,582 360

Version History

Version Released PHP Laravel License
2.0.1 >=7.3.0 ^8.0 | ^9.0 ^10.0 | ^11.0 | ^12.0 | ^13.0 AGPL-3.0-or-later
2.0.0 >=7.3.0 ^8.0 | ^9.0 ^10.0 | ^11.0 | ^12.0 AGPL-3.0-or-later
1.1.0 >=7.3.0 ^8.0 | ^9.0 ^10.0 | ^11.0 | ^12.0 AGPL-3.0-or-later
1.0.2 >=7.3.0 AGPL-3.0-or-later
v1.0.1 >=7.3.0 AGPL-3.0-or-later