前言 一不小心已经写了5篇关于 livewire 的东西了。今天这个也到了最后一篇了,我们把登录注册退出都完善好就可以结束这个系列了。后续我在研究点东西后,就准备开新坑了。 一鼓作气 文章列表 1 2 3 4 5 6 7 8 9 10 11 12 <div> {{-- In work, do what you enjoy. --}} <div> <livewire:auth.logout /> </div> <div class="p-5"> @foreach($posts as $post) @livewire('post.show', ['post' => $post]) @endforeach {{ $posts->links() }} </div> </div> 注意这行 @livewire('post.show', ['post' => $post]) 之前我们用的是 @……
阅读全文