Answers for "table names laravel"

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

create table laravel give name table

php artisan make:migration create_users_table --create=users
Posted by: Guest on April-10-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language