dewsign/nova-tool-redirects

301 Redirects managed through Laravel Nova

v1.1.1 2020-02-07 10:51 UTC

This package is auto-updated.

Last update: 2024-04-10 02:27:58 UTC


README

Uses Spatie Missing Page Redirector behind the scenes.

Installation

composer require dewsign/nova-tool-redirects

For Excel downloads to work you need to have your storage linked.

Usage

If you are using Dependency Injection to inject your models into controller methods, for example, you will need to apply the ShouldRedirectMissingPages trait to the model. This trait overrides the resolveRouteBinding() method and checks for a redirect in the Spatie MissingPageRedirector package if the model is not found, before returning a 404.

Enjoy!