eloquent-power-joins icon indicating copy to clipboard operation
eloquent-power-joins copied to clipboard

automatic add GlobalScopes

Open matheusbenedet opened this issue 1 year ago • 1 comments
trafficstars

The package documentation says that to apply global scopes we have to call $join->withGlobalScopes(), but if they are global scopes, it doesn't make sense for me to have to call them, it should be the other way around, if I don't want to, then yes I use withoutGlobalScopes(), but to avoid causing a break, I would suggest a package configuration file to set withGlobalScopes to true, then every join the package checks if it has global scopes and applies it if it does.

Thanks.

matheusbenedet avatar Jun 12 '24 17:06 matheusbenedet