src/Flipbox/OrmManager/Consoles/ModelDetail.php
protected function showDatabaseFields(Model $model)
    {
        $this->title("Table {$model->getTable()} :");

        if ( ! $this->db->isConnected()) {
            $this->warn("Not Connected to databse, please check your connection config\r");
        } else {
            $fields = $this->db->getFields($model->getTable());
            $headers = ['name', 'type', 'null', 'length', 'unsigned', 'autoincrement', 'primary_key', 'foreign_key'];

            $this->table($headers, $fields->toArray());
        }
    }
protected function showDatabaseFields(Model $model)
    {
        $this->title("Table {$model->getTable()} :");

        if ( ! $this->db->isConnected()) {
            $this->warn("Not Connected to databse, please check your connection config\r");
        } else {
            $fields = $this->db->getFields($model->getTable());
            $headers = ['name', 'type', 'null', 'length', 'unsigned', 'autoincrement', 'primary_key', 'foreign_key'];

            $this->table($headers, $fields->toArray());
        }
    }
protected function showDatabaseFields ( Model $ model ) { $ this -> title ( "Table {$model->getTable()} :" ) ; if ( ! $ this -> db -> isConnected ( ) ) { $ this -> warn ( "Not Connected to databse, please check your connection config\r" ) ; } else { $ fields = $ this -> db -> getFields ( $ model -> getTable ( ) ) ; $ headers = [ 'name' , 'type' , 'null' , 'length' , 'unsigned' , 'autoincrement' , 'primary_key' , 'foreign_key' ] ; $ this -> table ( $ headers , $ fields -> toArray ( ) ) ; } }
show database fileds

@param Model $model
@return void
show database fileds