novius/laravel-nova-redirect-manager

This package provides an interface to manage redirects with Nova

v1.0.1 2024-03-27 08:20 UTC

This package is auto-updated.

Last update: 2024-11-27 10:51:25 UTC


README

Travis 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 :

//app/Http/Kernel.php

protected $middleware = [
    ...
    \Spatie\MissingPageRedirector\RedirectsMissingPages::class,
],

Configuration

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

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.