class CommentsTable extends Component implements HasForms, HasTable
{
use InteractsWithForms;
use InteractsWithTable;
public int $blogId = 0;
public function table(Table $table): Table
{
return $table
->query(Comment::query()->where('blog_id', $this->blogId))
->columns([
...
])
...
class CommentsTable extends Component implements HasForms, HasTable
{
use InteractsWithForms;
use InteractsWithTable;
public int $blogId = 0;
public function table(Table $table): Table
{
return $table
->query(Comment::query()->where('blog_id', $this->blogId))
->columns([
...
])
...