PHP code example of justbetter / statamic-detour

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

    

justbetter / statamic-detour example snippets


return [
    'driver' => 'file',
    'path' => base_path('content/detours'),
];

return [
    'driver' => 'eloquent',
];

return [
    'mode' => 'basic',
];

return [
    'mode' => 'performance',
];

return [
    'auto_create' => true,
];

return [
    'query_string_default_handling' => 'strip_completely', // pass_through | strip_completely | strip_specific_keys
    'query_string_default_strip_keys' => 'gclid,fbclid',
];
bash
php artisan vendor:publish --tag=justbetter-statamic-detour
bash
php artisan migrate