28 lines
591 B
PHP
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);
|
|
}
|
|
}
|