PHP code example of malikad778 / laravel-blade-ally

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

    

malikad778 / laravel-blade-ally example snippets


return [
    'paths' => [
        resource_path('views'),
        app_path('Livewire'),
    ],
    
    // Ignore specific files or directories
    'exclude_paths' => [
        resource_path('views/vendor'),
    ],

    // Toggle individual rules
    'rules' => [
        'img-alt-filename' => false, // Disable specific rule
        'heading-multiple-h1' => true,
    ],
];
bash
php artisan ally:init
bash
php artisan ally:analyze
bash
php artisan ally:explain img-missing-alt
bash
php artisan ally:baseline