Files
generic_table_examples/app/Livewire/Examples/TableWithRelationshipsComponent.php
2025-03-12 00:41:31 -04:00

28 lines
591 B
PHP

<?php
namespace App\Livewire\Examples;
use App\Tables\TableWithRelationships;
use Livewire\Component;
class TableWithRelationshipsComponent extends Component
{
public $kil = [];
public function render()
{
// $this->test('hola', 'mundo');
return view('livewire.examples.table-with-relationships', [
'table' => TableWithRelationships::class
])
->extends('components.layouts.app')
->section('content');
}
public function test(string ...$e)
{
array_push($this->kil, ...$e);
dd($this->kil);
}
}