All custom config parameters that are defined by Larastan are listed here.
These parameters are related to the NoUnnecessaryCollectionCall
rule. You can find the details about these parameters and the rule here.
By default, the default Laravel database migration path (database/migrations
) is used to scan migration files to understand the table structure and model properties. If you have database migrations in other place then the default, you can use this config parameter to tell Larastan where the database migrations are stored.
You can give an absolute path, or a path relative to the PHPStan config file.
parameters:
databaseMigrationsPath: ../custom/migrations/path
default: false
This config parameter enables the checks for model properties that are passed to methods. You can read the details here.
To enable you can set it to true
:
parameters:
checkModelProperties: true