PHP code example of malcolmknott / redirector

1. Go to this page and download the library: Download malcolmknott/redirector library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

malcolmknott / redirector example snippets


'providers' => [
    Malcolmknott\Redirector\RedirectorServiceProvider::class,
];

'redirector' => \Malcolmknott\Redirector\DatabaseRedirector::class,

Route::resource('redirects', '\Malcolmknott\Redirector\RedirectController');
bash
php artisan make:auth
bash
php artisan migrate
bash
php artisan vendor:publish --provider="Malcolmknott\Redirector\RedirectorServiceProvider" --tag="views"