rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.71k stars 320 forks source link

[Feature Request]: Ability to publish stub file #1462

Closed danie-ramdhani closed 8 months ago

danie-ramdhani commented 8 months ago

Overview

It would be great if we can use our stub to make a small changes whenever the table component is generated

Detailed explanation

No response

Notes

No response

lrljoe commented 8 months ago

Just so I have the request clear, are you asking for:

Ability to customise the default stub that's used to generate a table via the make:datatable command?

What're you trying to add as a default out of interest?

danie-ramdhani commented 8 months ago

publish the datatable stub console like: https://laravel.com/docs/10.x/artisan#stub-customization

i always using a custom trait in my datatable to load some functions:

class MyTable extends DataTableComponent
{
    use MyTablesConfig;
    ....

so, it's better to have published table.stub whenever i want to generate a new datatable