PHP code example of luxplus / blade-linter

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

    

luxplus / blade-linter example snippets


// config/blade-linter.php
return [
    'rules' => [
        Luxplus\BladeLinter\Rules\SiblingBlankLines::class,
        App\BladeLint\MyProjectRule::class,
    ],
    'paths' => ['resources/views'],
    'base' => 'main',
];
bash
php artisan vendor:publish --tag=blade-linter-config