Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get database columns laravel

use IlluminateSupportFacadesSchema;

use IlluminateSupportFacadesDB;

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

    // OR

    return Schema::getColumnListing($table);

}
Comment

PREVIOUS NEXT
Code Example
Php :: php count matching words in two strings 
Php :: $conn php 
Php :: lodash tester 
Php :: How to check if email exists in laravel login 
Php :: convert any phone number in us number format php 
Php :: how to create controller inside folder in laravel 
Php :: laravel 8 make model with migration and controller 
Php :: keep only n elements of array php 
Php :: datetime blade laravel 
Php :: make migration file in laravel 
Php :: laravel blade empty 
Php :: how to set base url in codeigniter 
Php :: array associativo php 
Php :: read csv file in php 
Php :: php check if object is empty 
Php :: php curl Content-Length 
Php :: laravel npm build production 
Php :: php www to non www redirect 
Php :: laravel httaccess for apache 
Php :: php group multidimensional array by value 
Php :: php array_map() 
Php :: create migration with model laravel 8 
Php :: laravel delete relationship data 
Php :: how to change woocommerce read more text 
Php :: laravel price database 
Php :: js unserialize 
Php :: laravel 8 eloquent orderby 
Php :: update session laravel 
Php :: woocommerce remove payment method when totla is 0 
Php :: unlink(p1): No such file or directory 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =