Answers for "laravel db builder get column names"

SQL
1

get table column names sql laravel

use IlluminateSupportFacadesSchema;

use IlluminateSupportFacadesDB;

public function getTableColumns($table)
{
    return DB::getSchemaBuilder()->getColumnListing($table);

    // OR

    return Schema::getColumnListing($table);

}
Posted by: Guest on December-05-2020
0

laravel show table columns

Schema::getColumnListing($table);
Posted by: Guest on October-29-2020

Code answers related to "laravel db builder get column names"

Code answers related to "SQL"

Browse Popular Code Answers by Language