Performs syntax-checks of your Blade templates. Just that.
You can install the package via composer:
composer require --dev bdelespierre/laravel-blade-linter
php artisan blade:lint
Or if you want to lint specific templates or directories:
php artisan blade:lint resources/views/
If you're using PHPStan (please note it will make the linting a lot slower):
php artisan blade:lint --phpstan=vendor/bin/phpstan resources/views
composer test
# install clue/phar-composer globally (you'll need to update your $PATH,
# see https://getcomposer.org/doc/03-cli.md#global)
composer global require clue/phar-composer
# build the project
composer run build
# using the phar
laravel-blade-linter.phar help
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.