dewsign / nova-tool-redirects
301 Redirects managed through Laravel Nova
Installs: 765
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 2
Open Issues: 2
Type:package
Requires
- php: >=7.0.0
- laravel/framework: >=5.0.0
- laravel/nova: >=1.0.0
- maatwebsite/excel: ^3.1
- maxfactor/support: ^2.0.0
- spatie/laravel-missing-page-redirector: ^2.3
Requires (Dev)
- squizlabs/php_codesniffer: >=3.1
This package is auto-updated.
Last update: 2024-12-10 03:56:17 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!