private function getTableColumns (string $tableName)
    {
        $columns = DB::getSchemaBuilder ()->getColumnListing ($tableName);

        if (!count ($columns))
            $this->abort ("Table not found: " . $tableName);
        else
            $columns = DB::select (DB::raw ('SHOW COLUMNS FROM ' . $tableName));


        return $columns;
    }
private function getTableColumns (string $tableName)
    {
        $columns = DB::getSchemaBuilder ()->getColumnListing ($tableName);

        if (!count ($columns))
            $this->abort ("Table not found: " . $tableName);
        else
            $columns = DB::select (DB::raw ('SHOW COLUMNS FROM ' . $tableName));


        return $columns;
    }
private function getTableColumns ( string $ tableName ) { $ columns = DB :: getSchemaBuilder ( ) -> getColumnListing ( $ tableName ) ; if ( ! count ( $ columns ) ) $ this -> abort ( "Table not found: " . $ tableName ) ; else $ columns = DB :: select ( DB :: raw ( 'SHOW COLUMNS FROM ' . $ tableName ) ) ; return $ columns ; }
Getting table columns

@param $tableName
@return mixed
Getting table columns