where('exp_date', '<=', now()->subMonths(config('tracea.keepPoultryMonths', 18))); $q->delete(); } catch (\Exception $e) { report($e); } try { $q = TraceaEgg::query(); $q->where('dcr', '<=', now()->subMonths(config('tracea.keepEggMonths', 12)))->destroy(); $q->delete(); } catch (\Exception $e) { report($e); } } }