Menu

## Cities extends Component
in package
uses WithPagination

Cities.php : 23

Class Cities

Livewire component responsible for managing and displaying the list of cities in the Admin Settings section.

Features:

- Search cities by city name
- Search cities by related state name
- Paginated results

### Table of Contents

#### Properties

$search : string
  Search keyword for filtering cities and states.

#### Methods

render() : View
  Render the Livewire component view.
updatedSearch() : void
  Livewire hook triggered when the search property is updated.

### Properties

#### $search

Cities.php : 32

Search keyword for filtering cities and states.

`public string $search = ''`

### Methods

#### render()

Cities.php : 42

Render the Livewire component view.

`public render() : View`

Builds the city query with optional search filters and returns paginated results to the Blade view.

##### Return values

View

#### updatedSearch()

Cities.php : 70

Livewire hook triggered when the search property is updated.

`public updatedSearch() : void`

Resets pagination to the first page whenever the search keyword changes.

## Search results