backend.list.extendQueryBefore

Provides an opportunity to modify the $query object before the List widget applies its scopes to it.

Example usage:

Event::listen('backend.list.extendQueryBefore', function ($listWidget, $query) {
    $query->whereNull('deleted_at');
});

Or

$listWidget->bindEvent('list.extendQueryBefore', function ($query) {
    $query->whereNull('deleted_at');
});

Usage

Triggers

Class or file Line
Backend\Widgets\Lists 385
Copyright © 2024 Winter CMS