Added an example with two tables in the same parent component
This commit is contained in:
20
app/Livewire/Examples/WithTwoTablesComponent.php
Normal file
20
app/Livewire/Examples/WithTwoTablesComponent.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Examples;
|
||||
|
||||
use App\Tables\DepartmentTable;
|
||||
use App\Tables\TableWithDragDropOrdering;
|
||||
use Livewire\Component;
|
||||
|
||||
class WithTwoTablesComponent extends Component
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.examples.with-two-tables-component', [
|
||||
'products' => TableWithDragDropOrdering::class,
|
||||
'departments' => DepartmentTable::class
|
||||
])
|
||||
->extends('components.layouts.app')
|
||||
->section('content');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user