sleeping-owl / admin

Administrative interface builder for Laravel
http://sleeping-owl.github.io/
MIT License
504 stars 259 forks source link

Conditions in tree view #273

Closed diffmike closed 5 years ago

diffmike commented 9 years ago

Can I change query for tree view? Like in table view:

$display->apply(function ($query)
{
    $query->where('my_field', 2);
    $query->orderBy('date', 'desc');
});
noxify commented 9 years ago

Hi,

you can use the code from our forked version :)

https://github.com/Pseudoagentur/soa-sentinel/blob/develop/src/SleepingOwl/Admin/Display/DisplayTree.php

We have implemented the apply() and scope() functionality.