You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2021. It is now read-only.
Unfortunately, it's currently impossible to use this method in Laravel.
When newing up Symfony\Component\Console\Helper\Table it requires a ConsoleSectionOutput to be passed it.
A fully constructed ConsoleSectionOutput is available when calling section() on Symfony\Component\Console\Output\ConsoleOutputInterface. An object that implements this interface is available on Illuminate\Console\Command as $output. Unfortunately, this property is marked as protected.
In my project, I've just made this property public so I can just reach in and get the section.
// in a command$section = $this->output->output->section();
$this->table = newTable($section);
$this->table->setHeaders(['Column', 'Another column']);
$this->table->render();
$this->table->appendRow(['Value', 'Another Value']);
I'm not advocating making this property public, but rather for an easy way to be able to use appendRow.
riasvdv, mateusjunges, musa11971, njanik, thijssimonis and 6 more