backend.filter.extendQuery

Triggered in Backend\Widgets\Filter.

Provides an opportunity to extend the query of the list of options

Example usage:

Event::listen('backend.filter.extendQuery', function ((\Backend\Widgets\Filter) $filterWidget, $query, (\Backend\Classes\FilterScope) $scope) {
    if ($scope->scopeName == 'status') {
        $query->where('status', '<>', 'all');
    }
});

Or

$listWidget->bindEvent('filter.extendQuery', function ($query, (\Backend\Classes\FilterScope) $scope) {
    if ($scope->scopeName == 'status') {
        $query->where('status', '<>', 'all');
    }
});