Download the PHP package the-3labs-team/nova-redirector-seo without Composer
On this page you can find all versions of the php package the-3labs-team/nova-redirector-seo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download the-3labs-team/nova-redirector-seo
More information about the-3labs-team/nova-redirector-seo
Files in the-3labs-team/nova-redirector-seo
Package nova-redirector-seo
Short Description Redirector SEO for Laravel Nova
License MIT
Homepage https://github.com/the-3labs-team/nova-redirector-seo
Informations about the package nova-redirector-seo
Redirector SEO for Laravel Nova
NovaRedirectorSEO is a all-in-one SEO package for Laravel Nova. It provides a simple way to manage your SEO redirects.
Why choose NovaRedirectorSEO?
- Pre-configured Laravel Nova resource, you need only to install, register and configure the package.
- Middleware to handle redirects, you can use it in your routes or in your controllers.
- Cache support, based on your configuration, the package will cache the redirects. Also, it flush caches when you create, update or delete a redirect.
- Regex support, you can use regex in your redirects.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
It will use the default cache driver configured in your config/cache.php
file.
If you want to disable the cache, you can set the ttl
to null
.
Usage
Now it's time to configure the package.
Nova resource
First, register the NovaRedirectorSeo
tool in your /app/Providers/NovaServiceProvider.php
(you will probably have to add the entire function):
Now you can access the tool in your Nova panel, under the "SEO" menu.
Middleware
NovaRedirectorSeo is provided with a middleware that will redirect the user to the correct URL, if the current URL is not the correct one.
You can add this middleware to your app/Http/Kernel.php
file:
Policies
You can add a policy to the NovaRedirectorSeo resource, to restrict the access to the resource.
First, you need to create a policy for the NovaRedirectorSeo resource:
Then, register the policy in your app/Providers/AuthServiceProvider.php
file:
If you need, you can use this policy as a template:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Stefano Novelli
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of nova-redirector-seo with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^9.0|^10.0|^11.0