where('id', $id) ->where('is_active', 1) ->first(); return $row ?: null; } }