PHP code example of ndx / statamic-simple-redirects

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

    

ndx / statamic-simple-redirects example snippets


// config/statamic/redirects.php

'driver' => 'eloquent',
bash
php artisan vendor:publish --tag=simple-redirects-config
bash
php artisan vendor:publish --tag=simple-redirects-migrations
bash
php artisan migrate
php artisan cache:clear