27 lines
561 B
PHP
27 lines
561 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Examples;
|
|
|
|
use App\Tables\TableWithActionColumn;
|
|
use Livewire\Attributes\On;
|
|
use Livewire\Component;
|
|
|
|
class TableWithActionColumnComponent extends Component
|
|
{
|
|
public function render()
|
|
{
|
|
return view('livewire.examples.with-action-column-component', [
|
|
'table' => TableWithActionColumn::class,
|
|
])
|
|
->extends('components.layouts.app')
|
|
->section('content');
|
|
}
|
|
|
|
|
|
#[On('edit')]
|
|
public function edit(int $productId)
|
|
{
|
|
dd('Editing product: ' . $productId);
|
|
}
|
|
}
|