This package provides a Nova Tool to manage redirects with spatie/laravel-missing-page-redirector.
- PHP >= 7.3
- Laravel Nova >= 4.0
- Laravel Framework >= 8.0
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 :
//app/Http/Kernel.php
protected $middleware = [
...
\Spatie\MissingPageRedirector\RedirectsMissingPages::class,
],
This package provides a configuration file whose values overwrite the configuration of spatie/laravel-missing-page-redirector
.
You can publish the configuration file if you want to change these values :
php artisan vendor:publish --provider="Novius\LaravelNovaRedirectManager\RedirectManagerServiceProvider" --tag=config
You can also publish the migrations, lang :
php artisan vendor:publish --provider="Novius\LaravelNovaRedirectManager\RedirectManagerServiceProvider" --tag=migrations
php artisan vendor:publish --provider="Novius\LaravelNovaRedirectManager\RedirectManagerServiceProvider" --tag=lang
Run php-cs with:
composer run-script lint
Contributions are welcome! Leave an issue on Github, or create a Pull Request.
This package is under GNU Affero General Public License v3 or (at your option) any later version.