Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novius/laravel-nova-redirect-manager
This package provides a Nova tool to manage redirects with https://github.com/spatie/laravel-missing-page-redirector.
https://github.com/novius/laravel-nova-redirect-manager
laravel nova redirects seo
Last synced: about 2 months ago
JSON representation
This package provides a Nova tool to manage redirects with https://github.com/spatie/laravel-missing-page-redirector.
- Host: GitHub
- URL: https://github.com/novius/laravel-nova-redirect-manager
- Owner: novius
- Created: 2019-12-02T15:51:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T09:21:11.000Z (9 months ago)
- Last Synced: 2024-10-05T22:16:24.259Z (3 months ago)
- Topics: laravel, nova, redirects, seo
- Language: PHP
- Size: 16.6 KB
- Stars: 3
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nova Redirect Manager
[![Travis](https://img.shields.io/travis/novius/laravel-nova-redirect-manager.svg?maxAge=1800&style=flat-square)](https://travis-ci.org/novius/laravel-nova-redirect-manager)
[![Packagist Release](https://img.shields.io/packagist/v/novius/laravel-nova-redirect-manager.svg?maxAge=1800&style=flat-square)](https://packagist.org/packages/novius/laravel-nova-redirect-manager)
[![Licence](https://img.shields.io/packagist/l/novius/laravel-nova-redirect-manager.svg?maxAge=1800&style=flat-square)](https://github.com/novius/laravel-nova-redirect-manager#licence)This package provides a Nova Tool to manage redirects with [spatie/laravel-missing-page-redirector](https://github.com/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:
```sh
composer require novius/laravel-nova-redirect-manager
```The package will automatically register itself.
Next, launch migrations :
```ssh
php artisan migrate
```Next, you must register the `Spatie\MissingPageRedirector\RedirectsMissingPages` middleware :
```php
//app/Http/Kernel.phpprotected $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:
```sh
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](http://www.gnu.org/licenses/agpl-3.0.html) or (at your option) any later version.