novius / laravel-nova-redirect-manager
This package provides an interface to manage redirects with Nova
Installs: 11 565
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 7
Forks: 4
Open Issues: 1
Requires
- php: >=7.3.0
- laravel/nova: ~4.0
- spatie/laravel-missing-page-redirector: ^2.4|^2.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.16.1
README
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.