Laravel - Artisan Console - Tables

The table method makes it easy to correctly format multiple rows / columns of data. All you need to do is provide the column names and the data for the table and Laravel will automatically calculate the appropriate width and height of the table for you:

    use App\Models\User;
        ['Name', 'Email'],
        User::all(['name', 'email'])->toArray()