{"repo":"SiroDiaz/laravel-redirection","free":true,"listed":false,"github":"https://github.com/SiroDiaz/laravel-redirection","clone":"git clone https://github.com/SiroDiaz/laravel-redirection.git","description":"Laravel 8, 9, 10 and 11 package to manage URL redirections inside your Laravel application using different data sources. It allows a better SEO support for your Laravel site.","language":"PHP","stars":63,"topics":["laravel","php","laravel-framework","laravel-package","laravel-redirect","database","url","url-redirect","url-redirection","url-redirections"],"license":"MIT","category":"databases-storage","readme_excerpt":"Laravel package for manage your URL redirects in database or other sources to get better SEO results Requirements You need PHP 8.0 or higher. It is tested and designed for Laravel 9 and 10. This package will receive updates for future Laravel versions. Previous Laravel versions are not contemplated so use Neurony/laravel-redirects package for older Laravel versions. 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: You can change and extend the default SiroDiaz\\Redirection\\Models\\Redirection model class. Image that you want to add some methods or fields. You would need to create a new model class, for example App\\Models\\Redirect . Here is a basic example of how to extend the functionality of the default Redirection model. We want to include support for Laravel BackPack admin panel would be: Finally, you have to vendor:publish the sirodiaz/laravel-redirection config file to change the model class used now. If you want to add more status codes for another type of redirect purposes, add them to your config/redirection.php config file. By default, you have the most common redirections codes: 301, 302 and 307. Ey! don't forget to append the middleware SiroDiaz\\Redirection\\RedirectRequests to your app/Http/Kernel.php file Extending and creating new redirect Drivers TODO Testing this package for contribution Changelog Please see CHANGELOG for mor","default_branch":null,"files":null,"tree":[],"storefront":"/r/SiroDiaz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SiroDiaz/laravel-redirection/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}