PHPackages                             bernhardh/nova-redirect-tester - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. bernhardh/nova-redirect-tester

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

bernhardh/nova-redirect-tester
==============================

A Laravel Nova tool.

0.1.0(5y ago)095MITPHPPHP &gt;=7.1.0

Since Sep 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bernhardh/nova-redirect-tester)[ Packagist](https://packagist.org/packages/bernhardh/nova-redirect-tester)[ RSS](/packages/bernhardh-nova-redirect-tester/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

A Laravel Nova tool for testing redirects
=========================================

[](#a-laravel-nova-tool-for-testing-redirects)

This is a laravel nova tool, where you can test visually if all your redirects are working as expected.

[![Animate](https://user-images.githubusercontent.com/642292/93993236-c9bcd300-fd8e-11ea-8400-9db1f3251d59.gif)](https://user-images.githubusercontent.com/642292/93993236-c9bcd300-fd8e-11ea-8400-9db1f3251d59.gif)

Table of content
----------------

[](#table-of-content)

1. [Why should I use this package?](#why-should-i-use-this-package)
2. [Installation](#installation)
3. [Create tests](#create-tests)
4. [Editing Groups](#editing-groups)
5. [Examples](#examples)

Why should I use this package?
------------------------------

[](#why-should-i-use-this-package)

If you have a lot of old urls you have redirected to new ones (for example you changed the url structure, migrated to laravel or introduced new language specific urls) and you are using Laravel Nova, then this package can help you have an eye on these redirects.

This is especially important to keep your visitors and SEO power by preventing broken redirects.

Installation
------------

[](#installation)

You can install the package in to a Laravel app that uses Nova via composer:

```
composer require bernhardh/nova-redirect-tester

```

After that, run the builtin migrations, which will create 2 tables:

- `nova_redirect_tester`: This are the tests
- `nova_redirect_tester_groups`: With this, you can group your tests

```
php artisan migrate

```

Now you must register the tool with Nova. This is done in the tools method of the `NovaServiceProvider`.

```
// file app/Providers/NovaServiceProvider.php

public function tools()
{
    return [
        // ...
        \Bernhardh\NovaRedirectTester\NovaRedirectTester::make()
    ];
}
```

Now you will find the Redirect Tester menu entry in your Nova sidebar. Right now, there are no tests, please read on to find out, how to create new tests.

Create tests
------------

[](#create-tests)

You can either fill up the two database tables `nova_redirect_tester` and `nova_redirect_tester_groups` by yourself (for example with phpmyadmin) or you use Nova to manage this. The easiest way to to this, is to create the two Nova resources, by extending the package nova resources:

```
