Search
 
SCRIPT & CODE EXAMPLE
 

PHP

laravel get list of columns in a table

use IlluminateSupportFacadesSchema;

use IlluminateSupportFacadesDB;

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

    // OR

    return Schema::getColumnListing($table);

}
Comment

PREVIOUS NEXT
Code Example
Php :: custom js css using wordpress hook 
Php :: diffforhumans laravel 
Php :: string to float php 
Php :: laravel session flash 2020 
Php :: attach multiple files in laravel mailable 
Php :: twig json_encode 
Php :: php set error log file 
Php :: woocommerce-cart-count 
Php :: php get all txt files in directory 
Php :: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress. 
Php :: get_posts category 
Php :: how to create controller in specific folder laravel 
Php :: apache not executing php 
Php :: ubuntu 20 phpmyadmin install 
Php :: Get html by ajax 
Php :: laravel number add 0 before 
Php :: set character set utf8 in pdo php 
Php :: reload page in php 
Php :: get template part pass variable 
Php :: Script timeout passed, if you want to finish import 
Php :: print query in laravel 
Php :: Command "route:scan" is not defined. 
Php :: php loop through string 
Php :: allert in php 
Php :: laravel json 
Php :: yii2 confirm 
Php :: php check regular string 
Php :: get count of relationship table laravel 
Php :: doctrine mongodb native query 
Php :: loop variable in laravel 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =