Vutsa I'm using DirectoryTree/LdapRecord-Laravel package. For some reason the wrong method is found. The correct method inherits static query() method from parent class model (found by php intellisense).
JakubMisek Vutsa Thank you for the screenshot! We'll take a look, I hope we'll get it fixed in the next update.