| Install | |
|---|---|
composer require essaka/laravel-livewire-tables-mongodb |
|
| PHP: | ^8.1|^8.2|^8.3 |
Forked from rappasoft/laravel-livewire-tables to use driver db mongodb/laravel-mongodb

A dynamic Laravel Livewire component for data tables.


You can install the package via composer:
composer require dndarksan/laravel-livewire-tables-mongodb "dev-master"
You must also have Alpine.js version 3 or greater installed and available to the component.
See the documentation for detailed installation and usage instructions.
<?php
namespace App\Http\Livewire\Admin\User;
use App\Domains\Auth\Models\User;
use MongoDB\Laravel\Eloquent\Builder;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
class UsersTable extends DataTableComponent
{
protected $model = User::class;
public function configure(): void
{
$this->setPrimaryKey('id');
}
public function columns(): array
{
return [
Column::make('ID', 'id')
->sortable(),
Column::make('Name')
->sortable(),
];
}
}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please e-mail anthony@rappasoft.com to report any security vulnerabilities instead of the issue tracker.
The MIT License (MIT). Please see License File for more information.