Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column names and multilingual #19

Open
seldimi opened this issue Aug 27, 2016 · 0 comments
Open

Column names and multilingual #19

seldimi opened this issue Aug 27, 2016 · 0 comments

Comments

@seldimi
Copy link

seldimi commented Aug 27, 2016

Hey. Is there any way to define column names via language file or similar, in order to avoid creating the table from scratch via the functions?

To avoid the below

$table = new Table($row); $table->create($row); $table->setColumns([]); $table->addColumn('type_id', 'Type IN FOREIGN LANG', function ($bill) { $type = BillsType::where('id', '=', $bill->type_id)->get(); $type = $type[0]->title; return $type; });

etc

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

No branches or pull requests

1 participant