Skip to content

Commit

Permalink
docs(stubs): update livewire.stub file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaiyuxin103 committed Jan 13, 2025
1 parent 0d62bc0 commit c8416e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/Livewire/Privacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Illuminate\View\View;
use Livewire\Attributes\Computed;
use Livewire\Attributes\Layout;
use Livewire\Component;

class Privacy extends Component
{
Expand Down
1 change: 0 additions & 1 deletion app/Livewire/Term.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Illuminate\View\View;
use Livewire\Attributes\Computed;
use Livewire\Attributes\Layout;
use Livewire\Component;

class Term extends Component
{
Expand Down
7 changes: 5 additions & 2 deletions stubs/livewire.stub
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<?php

declare(strict_types=1);

namespace [namespace];

use Livewire\Component;
use App\Livewire\Component;
use Illuminate\View\View;

class [class] extends Component
{
public function render()
public function render(): View
{
return view('[view]');
}
Expand Down

0 comments on commit c8416e0

Please sign in to comment.