Laravel pint file exclusion
hello all i am using laravel 10 and trying to exclude some files from pint
i have created pint.json file with this content:
{
"preset": "laravel",
"exclude": [
"routes/web.php"
]
}
in my composer.json i have this:
"pint": "./vendor/bin/pint",
"pint:test": "./vendor/bin/pint --test",
but everythime i run pint using composer pint or ./vendor/bin/pint
the web route is always affected by pint
any help please
https://laravel.com/docs/11.x/pint#excluding-files-or-folders
If you would like to exclude a file by providing an exact path to the file, you may do so using the notPath configuration option:
{
"notPath": [
"routes/web.php"
]
}
so I believe this should do, or
{
"exclude": [
"routes"
]
}
// this exclude every file from routes folder
Please or to participate in this conversation.