eloquent-power-joins
eloquent-power-joins copied to clipboard
automatic add GlobalScopes
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.