PHP code example of jorisnoo / statamic-locale-redirect
1. Go to this page and download the library: Download jorisnoo/statamic-locale-redirect 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/ */
jorisnoo / statamic-locale-redirect example snippets
return [
'exclude' => [],
'only' => [],
];
'exclude' => ['de', 'it'],
'only' => ['en', 'fr'],
bash
php artisan vendor:publish --tag=locale-redirect