spatie/laravel-missing-page-redirector

missing page redirector not working when change from Word press to Laravel

careerhub-source opened this issue · 0 comments

I have change my site from worpress to Laravel, stop even use the wordpress database. I want to handle the old url (wordpress site) to redirect to new laravel, my domain is the same. I want help to implement variable redirect
Below is code for conf file

`
return [

'redirector' => \App\Providers\MyRedirector::class,


'redirect_status_codes' => [ ],


'redirects' => [],
];`

Below code for class interface

`<?php
namespace App\Providers;
use Spatie\MissingPageRedirector\Redirector\Redirector;

class MyRedirector implements Redirector
{
public function getRedirectsFor(Request $request): array
{
// Get the redirects from the config
$configRedirects = config('missing-page-redirector.redirects');

// Merge both values
return array_merge(['/old/url' => '/new/url'], $configRedirects);
}
}`

What is missing in the code? is there any files need to create in order to work here is my site for reference https://www.danvast.com/employers