How to select all column name from a table in laravel?
<p>I have tried to get all column names from a table <strong>Teller</strong></p>

<p>Function:</p>

<pre><code>public function getTableColumns($tables)
{
    return DB::select(DB::raw('SELECT 
                                    COLUMN_NAME, 
                                    DATA_TYPE, 
                                    COLUMN_DEFAULT
                                FROM 
                                    INFORMATION_SCHEMA.COLUMNS
                                WHERE 
                                    table_name = `Teller`'));
}
</code></pre>