Skip to content

Commit b676f17

Browse files
authored
docs: add Livewire component route support to README
1 parent 86542ac commit b676f17

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,30 @@ class ProcessData implements ShouldBeQueued
127127
}
128128
```
129129

130+
**⚙️ Livewire Component Route:**
131+
132+
```html
133+
<form wire:submit.prevent="save">
134+
```
135+
136+
```php
137+
class CreatePost extends Component
138+
{
139+
#[CriticalAttribute]
140+
public function save()
141+
{
142+
143+
}
144+
145+
public function render()
146+
{
147+
return view('livewire.create-post');
148+
}
149+
}
150+
```
151+
152+
153+
130154
### 🔄 Customizing Log Settings at Runtime
131155

132156
You can dynamically set the bot token, chat ID, and topic ID while logging:

0 commit comments

Comments
 (0)