

Your PC becomes a server with multiple clients which can be very helpful for sending data back and forth to a serial device. Once you have the solution set up, all client computers on your network can use the devices as if they were directly connected to the machines.
#Redirector license#
Please see License File for more information.Here are some usage scenarios that demonstrate the benefits of using Electronic Team’s COM Port Redirector with Linux and Windows systems. If you've found a bug regarding security please mail instead of using the issue tracker. Please see CHANGELOG for more information what has changed recently. The getRedirectsFor method should return an array in which the keys are the old URLs and the values the new URLs. Public function getRedirectsFor( Request $request): array

Use Symfony\ Component\ HttpFoundation\ Request That interface looks like this: namespace Spatie\ MissingPageRedirector\ Redirector If you want to use another source for your redirects (for example a database) you can create your own redirector.Ī valid redirector is any class that implements the Spatie\MissingPageRedirector\Redirector\Redirector-interface. Creating your own redirectorīy default this package will use the Spatie\MissingPageRedirector\Redirector\ConfigurationRedirector which will get its redirects from the config file. A RedirectNotFound is fired when no redirect was found. The package will fire a RouteWasHit event when it found a redirect for the route. You may override this using the following syntax: 'redirects' => [
#Redirector code#
By default the 301 Moved Permanently response code is set. It is also possible to optionally specify which http response code is used when performing the redirect. You may override this using the following syntax to achieve this: 'redirect_status_codes' => , To achieve this you may change the redirect_status_codes option to an array of response codes or leave it empty if you wish to be redirected no matter what the response code was sent to the URL. '/non-existing-page' => '/existing-page', // '/old-blog/ will be the entire pathīy default the package only redirects if the request has a 404 response code but it's possible to be redirected on any response code. * You can use Laravel's route parameters here. * * When using the `ConfigurationRedirector` you can specify the redirects in this array. \ Symfony\ Component\ HttpFoundation\ Response:: HTTP_NOT_FOUND Leave the array empty to redirect * always no matter what the response code. If you want to redirect on other * response codes, just add them to the array. * * By default the package will only redirect 404s. * The only requirement for the redirector is that it needs to implement the * `Spatie\MissingPageRedirector\Redirector\Redirector`-interface */ 'redirector' => \ Spatie\ MissingPageRedirector\ Redirector\ ConfigurationRedirector::class, * * This is the class responsible for providing the URLs which must be redirected. This is the contents of the published config file: return [ \ Spatie\ MissingPageRedirector\ RedirectsMissingPages::class,įinally you must publish the config file: php artisan vendor:publish -provider=" Spatie\MissingPageRedirector\MissingPageRedirectorServiceProvider" Next you must register the Spatie\MissingPageRedirector\RedirectsMissingPages-middleware: //app/Http/Kernel.php protected $middleware = [ The package will automatically register itself.
#Redirector install#
You can install the package via composer: composer require spatie/laravel-missing-page-redirector We publish all received postcards on our virtual postcard wall. You'll find our address on our contact page. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You can support us by buying one of our paid products. We invest a lot of resources into creating best in class open source packages. Want to use the database as your source of redirects? No problem! Support us When installed you only need to add your redirects to the config file. This package makes that process very easy. One way of doing this is by providing permanent redirects from your old URLs to your new URLs. If your old site was popular you probably want to retain your SEO worth. When transitioning from a old site to a new one your URLs may change. Redirect missing pages in your Laravel application
