Skip to content

Ability to define aliases for column names#311

Open
ziaenezhad wants to merge 1 commit intopatricktalmadge:masterfrom
ziaenezhad:master
Open

Ability to define aliases for column names#311
ziaenezhad wants to merge 1 commit intopatricktalmadge:masterfrom
ziaenezhad:master

Conversation

@ziaenezhad
Copy link

hi
this will help for localization purposes :

Table::withContents(
    \App\Models\Product::all()->toArray()
)->alias([
    'name' =>trans('lables.name'), 
    'manufacturer' => trans('lables.manufacturer')
])

@PatrickRose
Copy link
Collaborator

This essentially already exists - implement the TableInterface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants