Uploading content
This commit is contained in:
27
app/Livewire/Examples/TableWithRelationshipsComponent.php
Normal file
27
app/Livewire/Examples/TableWithRelationshipsComponent.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user