PHP code example of devskio / statamic-ohdear-addon

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

    

devskio / statamic-ohdear-addon example snippets


// Extra filenames / glob patterns that are allowed in public/
'allowed_files' => [
    'sitemap.xml',
    'my-custom-file.txt',
],

'widgets' => [
    ['type' => 'ohdear_health_check', 'width' => 100],
],

'widgets' => [
    [
        'type' => 'ohdear_health_check',
        'width' => 100,
        'can' => 'view ohdear health check widget',
    ],
],
bash
php artisan vendor:publish --tag="statamic-ohdear-health-check-config"
bash
php artisan vendor:publish --tag=statamic-ohdear-health-check --force

.htaccess, index.php, robots.txt, assets, build, favicons,
fonts, icons, img, static, vendor, visuals, hot