close #2023 Changed: Add all report date filter.

This commit is contained in:
Cüneyt Şentürk 2021-05-05 16:01:18 +03:00
parent cc35956d82
commit 535da27d2e
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -39,7 +39,7 @@ class AddDate extends Listener
*/
public function handleFilterApplying(FilterApplying $event)
{
if ($this->skipThisClass($event)) {
if (empty($event->args['date_field'])) {
return;
}