Closed dreamboostme closed 3 years ago
Concise, convenient, with the ability to return an inverted result.
Name active for this scope mentioned in OctoberCMS documentation: https://octobercms.com/docs/database/model#query-scopes
active
This short name is also often found in the implementation of models of other plugins.
Record::active()->paginate(12);
You can also invert the result by passing FALSE. What for? I don’t know, but why not =)
Record::active(false)->paginate(12);
Concise, convenient, with the ability to return an inverted result.
Name
active
for this scope mentioned in OctoberCMS documentation: https://octobercms.com/docs/database/model#query-scopesThis short name is also often found in the implementation of models of other plugins.
You can also invert the result by passing FALSE. What for? I don’t know, but why not =)