where('company_id', $companyId)->where('month', $month) ->pluck('courier_name', 'row_key')->all(); } public function save(int $companyId, string $month, string $key, string $courier, string $actor): void { DB::table(self::TABLE)->updateOrInsert( ['company_id' => $companyId, 'month' => $month, 'row_key' => $key], ['courier_name' => $courier, 'actor' => $actor, 'updated_at' => now()] ); } }