delete(); StatServer::where('record_at', '<', strtotime('-2 month', time()))->delete(); Log::where('created_at', '<', strtotime('-1 month', time()))->delete(); } }