laravel-livewire

安装量: 60
排名: #12491

安装

npx skills add https://github.com/fusengine/agents --skill laravel-livewire

Laravel Livewire 3 Documentation Livewire & Related folio.md - File-based routing precognition.md - Live validation prompts.md - CLI prompts reverb.md - WebSockets Component Class

when ( $this -> search , fn ( $q ) => $q -> where ( 'title' , 'like' , "% { $this -> search } %" ) ) -> paginate ( 10 ) ; } public function create ( ) : void { $this -> validate ( ) ; Post :: create ( [ 'title' => $this -> title ] ) ; $this -> reset ( 'title' ) ; $this -> dispatch ( 'post-created' ) ; } public function render ( ) { return view ( 'livewire.post-list' ) ; } } Blade View
@error('title') {{ $message }} @enderror
@foreach($this->posts as $post)
{{ $post->title }}
@endforeach {{ $this->posts->links() }}
Volt (Single-File) 0 ] ) ; $increment = fn ( ) => $this -> count ++ ; $doubled = computed ( fn ( ) => $this -> count * 2 ) ; ?>

< div

< h1

{{ $count }} </ h1

< p

Doubled: {{ $this->doubled }} </ p

< button wire: click = " increment "

+ </ button

</ div

返回排行榜