Hello,
I would like to call scope inside another scope and I don't find the right syntax to use in the documentation.
Basically, I have a scopeDefault() function that does basic filtering (return published content only etc...)
I have another scopeFilters() that return content based on filters defined on $_GET element.
I would like to call the scopeDefault() scope inside the scopeFilters() scope, to do the basic filtering before adding more filters to the query.
I tried something like this :
$query->default()->where(......); // but I get an error
Tried also :
$query->scopeDefault()->where(....); // also return an error
I don't know what is the right syntax to call my scopeDefault() inside my scopeFilters() function, I'm new to laravel and october, if somebody with more experience can point me the right syntax, I would definitely appreciate.
Thanks
Alex