app_tenancy (from getTenancyScopeName()). While that is okay for normal use-case, my specific use case was to use global roles (using Shield/laravel-permissions)RoleResource::scopeToTenant(false) is not working, so this was the only way I have been able to use to solve my problem.newQuery to fix it.