Laravel Pint

Laravel Pint is a tool that helps you to keep your codebase clean and consistent. It provides a set of rules that you can use to enforce your code style.

Installation

To install Laravel Pint, make sure you're familiar with the official Laravel documentation on how to install Pint.

Install Laravel Pint

spin run php composer require laravel/pint --dev

Usage

Once you've installed Laravel Pint, you can run the following command to check your codebase for any issues:

Run Laravel Pint

spin run php ./vendor/bin/pint

Exclude Files

If you run into issues with certain files (especially files in your .infrastructure directory), you can ignore them by adding them to the .pint.json file.

.pint.json

{
    "exclude": [
        ".infrastructure"
    ]
}