stevebauman/eloquenttable
Abandoned package: an HTML table generator for Laravel Eloquent collections. Provides a TableTrait and service provider setup (Laravel 4/5) to render collection data as tables, with limited pagination support (Laravel 5 requires manual render()).
showPages() is non-functional in Laravel 5+ due to pagination API changes, requiring manual pagination rendering.columns()->render()).means()) and basic styling (via modifyCell()/modifyRow()).$items->links() outside the table).Book::sort($field, $direction)), which isn’t idiomatic in modern Laravel (prefer ->orderBy() or query scopes).Collection class (e.g., dynamic properties, macro system).sort() helper replaced by orderBy()).illuminate/support).Book::sort()) could expose SQL injection risks if not sanitized (though unlikely in this package’s scope).modify(), modifyCell()) or deep relationships could impact performance if not optimized.stevebauman/eloquenttable in the codebase.showPages() with manual pagination rendering ($items->links()).Book::sort() with Book::orderBy() in controllers.Table class.use Orchestral\HTML\Table;
$table = new Table(['id', 'title', 'author']);
$table->rows($books);
return $table->render();
TableComponent.php).<x-table :columns="$columns" :items="$books" />
maatwebsite/excel alongside custom HTML generation.stevebauman/eloquenttable in favor of a maintained alternative.Book::get()->columns()->render() with Table::render($books)).| Feature | Laravel 4 | Laravel 5 | Laravel 8+ | Notes |
|---|---|---|---|---|
| Basic Table Rendering | ✅ | ✅ | ❌ | Works but may break due to Eloquent changes. |
Relationships (means()) |
✅ | ✅ | ⚠️ | May fail if Eloquent relationships change. |
| Sorting | ✅ | ⚠️ | ❌ | Manual orderBy() required in L5+. |
Pagination (showPages()) |
✅ | ❌ | ❌ | Manual pagination in L5+. |
| Cell/Row Modifiers | ✅ | ✅ | ⚠️ | Likely works but untested. |
| Table Attributes | ✅ | ✅ | ✅ | Works (e.g., ->attributes()). |
stevebauman/eloquenttable from composer.json.How can I help you explore Laravel packages today?