close #2023 Changed: Add all report date filter.
This commit is contained in:
parent
cc35956d82
commit
535da27d2e
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Abstracts;
|
||||
|
||||
use App\Traits\DateTime;
|
||||
use App\Traits\Tenants;
|
||||
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
|
||||
use Illuminate\Database\Eloquent\Model as Eloquent;
|
||||
@ -11,7 +12,7 @@ use Lorisleiva\LaravelSearchString\Concerns\SearchString;
|
||||
|
||||
abstract class Model extends Eloquent
|
||||
{
|
||||
use Cachable, SearchString, SoftDeletes, Sortable, Tenants;
|
||||
use Cachable, DateTime, SearchString, SoftDeletes, Sortable, Tenants;
|
||||
|
||||
protected $tenantable = true;
|
||||
|
||||
|
@ -39,7 +39,7 @@ class AddDate extends Listener
|
||||
*/
|
||||
public function handleFilterApplying(FilterApplying $event)
|
||||
{
|
||||
if ($this->skipThisClass($event)) {
|
||||
if (empty($event->args['date_field'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user