Replies: 1 comment 1 reply
-
|
I tracked it down to public function findModelQuery($resourceId = null)
{
return $this->newQueryWithoutScopes()->whereKey(
$resourceId ?? $this->resourceId
);
}Why without scopes? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
The SQL query of a resource details (show) view does not include the global scopes specified in the model
Detailed steps to reproduce the issue on a fresh Nova installation:
Add some global scope to the model and go to its resource details page. Using Laravel DebugBar, I can see the query does not include the global scope. Is this by design? and why?
Beta Was this translation helpful? Give feedback.
All reactions