PHP code example of amiraghaee / redirector

1. Go to this page and download the library: Download amiraghaee/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/ */

    

amiraghaee / redirector example snippets

 bash
$ php artisan vendor:publish --tag=redirector
 php
'engine' => 'eloquent',
 bash
$ php artisan migrate
 php
Redirector::set($route, $status, $endpoint);
 php
Redirector::all();
 php
Redirector::get($route);
 php
Redirector::delete($route);
 bash
$ php artisan redirector:refresh