This bundle is designed to grant functionnalities to create simple table based on entities.
Current available template :
First, install dependencies (next chapter)
Simply import it into your project with composer
composer require darkanakin41/table-bundle
Configuration is, at the moment, rather basic :
darkanakin41_table:
template:
# Select the template for all fields
fields: '@Darkanakin41Table/foundation/fields.html.twig'
# Select the template for all table
table: '@Darkanakin41Table/foundation/table.html.twig'
In order to use the bundle, you must declare your own Table class which will extends Darkanakin41\TableBundle\Definition\AbstractTable
Then, you'll have to override method public function __init__() in order to define the differents columns you need
Next, you'll need to pass the table to the view and in the template, use a twig extension from the bundle to display it :
{{ darkanakin41_table_render(table) }}
How can I help you explore Laravel packages today?