This repository was archived by the owner on Feb 7, 2025. It is now read-only.
voyager 1.5 local scope not working #5614
Unanswered
gludovatza
asked this question in
Q&A
Replies: 0 comments
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.
-
I follow the documentation related to the "Scoping relationships" ( https://voyager-docs.devdojo.com/bread/relationships#scoping-relationships ):
Defined the scopeActive function in the model file:
public function scopeActive($query) { return $query->where('id', 1); }
And defined the "Relationship Details" in the form of the related BREAD:
{ "scope": "active" }
but it's not working ... I get all model elements in the dropdown list, not only the first one.
Please, help me.
Beta Was this translation helpful? Give feedback.
All reactions