Skip to content

Commit 256720a

Browse files
authored
Update use (#59)
1 parent 6161386 commit 256720a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/docs/livewire/editing-chirps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ Note that, even though we're only displaying the edit button to the author of th
176176
<?php
177177

178178
use App\Models\Chirp; // [tl! add:start]
179-
use Livewire\Attributes\Rule; // [tl! add:end]
179+
use Livewire\Attributes\Validate; // [tl! add:end]
180180
use Livewire\Volt\Component;
181181

182182
new class extends Component
183183
{
184184
public Chirp $chirp; // [tl! add:start]
185185

186-
#[Rule('required|string|max:255')]
186+
#[Validate('required|string|max:255')]
187187
public string $message = '';
188188

189189
public function mount(): void

0 commit comments

Comments
 (0)