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