where('code', $code)->first(['id']); return $row?->id; } }