Check Code Style(default PSR-12) for Laravel
Run in your Laravel project:
composer require --dev laravel-fans/lint
php artisan lint:publish
You will find pint.json
, phpcs.xml
and phpmd.xml
in your project, feel free to change it.
php artisan lint
php artisan lint --fix
php artisan lint:code
php artisan lint:code --fix
php artisan lint:code app/ tests/
php artisan lint:code app/ tests/ --fix
php artisan lint:pint
php artisan lint:phpcs
php artisan lint:pmd
php artisan lint:staged
php artisan lint:route
Slug(kebab-case) URI standard: lowercase ASCII letters, digits, and hyphens (a-z, 0–9, -)