Backend Linting and Formatting
This project uses Laravel Pint for PHP code style.
After installing dependencies, run Pint manually with:
shell
./vendor/bin/pint
VS Code
- Install the Laravel Pint extension (see
.vscode/extensions.jsonrecommendations). - Pint is configured as the default formatter for PHP files in
.vscode/settings.json, so formatting on save uses Pint automatically.
PhpStorm
- Ensure Pint is installed via Composer:
docker compose exec -T core.web composer install. - Configure Pint under
Settings > PHP > Quality Tools > Laravel Pint, pointing tovendor/bin/pintand (optionally)pint.json. - Enable the Laravel Pint inspection (
Settings > Editor > Inspections > PHP > Quality Tools) and set Pint as an external formatter soCode > Reformat Coderuns Pint. - Optionally add a File Watcher for Pint (
Tools > File Watchers) that runsvendor/bin/pint $FilePath$for PHP files.