# Naming Livewire Components

If you put your livewire component in a sub folder then its name will be lowercase foldername followed by a period; eg

Livewire model of App\Http\Livewire\Modals\Notifications.php

```
@livewire('modals.notifications')

onclick="Livewire.emit('openModal', 'modals.notifications')" />
```

If your Component Class is Pascal Case, eg **DatabaseNotifications** then the class name called from the frontend will be lowercase and with a hyphen before any uppercase, eg

```
@livewire('modals.database-notifications')

onclick="Livewire.emit('openModal', 'modals.database-notifications')" />
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://talltips.novate.co.uk/livewire/naming-livewire-components.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
