bricknpc/eloquent-tables is a Laravel package for eloquent tables for laravel..
It currently has 2 GitHub stars and 59 downloads on Packagist (latest version 1.2.0).
Install it with composer require bricknpc/eloquent-tables.
Discover more Laravel packages by bricknpc
or browse all Laravel packages to compare alternatives.
Last updated

Install the package using composer.
composer require bricknpc/eloquent-tables
^8.4^12.0This package builds eloquent tables for you with the frontend framework of your choice. You need to install the frontend framework yourself in your Laravel project.
Supported frontend frameworks:
Roadmap:
You can publish the Eloquent Tables config and view files.
# All assets
php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider"
# Only one type of asset
php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider" --tag="views"
php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider" --tag="config"
php artisan vendor:publish --provider="BrickNPC\EloquentTables\Providers\EloquentTablesServiceProvider" --tag="lang"
See the documentation.
This project has a simple docker setup for local development. To start local development, download the project and start the docker container. You need to have Docker installed on your local machine for this.
First, clone the project.
git clone https://github.com/bricknpc/eloquent-tables.git
cd eloquent-tables
Up the docker container and install the dependencies.
docker-compose up -d
docker-compose exec php composer install
You can execute commands in the container using the exec option.
docker-compose exec php <your command>
If you rather log in to the container and execute commands manually, you can use this:
docker-compose exec php bash
docker-compose down
When starting the docker container, the documentation site will automatically be started as well and will be available on http://localhost:3000/eloquent-tables. The documentation is built using Docusaurus. When adding new features or making changes, please also update the documentation.
You can run the tests using the following command.
docker-compose exec php composer test
Eloquent Tables uses PHP CS Fixer and PHPStan to ensure a high quality code base. You can run the tools locally using the following commands.
PHP CS Fixer:
docker-compose exec php composer cs
PHPStan:
docker-compose exec php composer ps
Are you using Eloquent Tables in your project? Let us know by opening a pull request to add your project to the community showcase. We love seeing what people are building with Eloquent Tables.
Pull requests are welcome. When creating a pull request, please include what you changed and why in the description of the pull request. When fixing a bug, please include a test that reproduces the bug and describe how to test the bug manually.
Before creating a pull request, please run the tests and code quality tools locally.
We only accept pull requests when PHPStan reports no errors and the test coverage hasn't gone down.