Laravel 8 表格布局
table
方法让多行多列数据的格式化输出变得非常轻松。它将基于表头和行数据,动态的计算宽高:
$headers = ['Name', 'Email'];
$users = App\Models\User::all(['name', 'email'])->toArray();
$this->table($headers, $users);
table
方法让多行多列数据的格式化输出变得非常轻松。它将基于表头和行数据,动态的计算宽高:
$headers = ['Name', 'Email'];
$users = App\Models\User::all(['name', 'email'])->toArray();
$this->table($headers, $users);