example/Provider/AppContentProvider.php
public function isValidColumn ($table, $column) {
        $table_object = ($this->ContentContract->tables[$table]);
        $schema = $table_object::SCHEMA;
        return isset($schema[$column]);
    }
public function isValidColumn ($table, $column) {
        $table_object = ($this->ContentContract->tables[$table]);
        $schema = $table_object::SCHEMA;
        return isset($schema[$column]);
    }
public function isValidColumn ( $ table , $ column ) { $ table_object = ( $ this -> ContentContract -> tables [ $ table ] ) ; $ schema = $ table_object :: SCHEMA ; return isset ( $ schema [ $ column ] ) ; }
Checks a column exists in a given table

Uses the specific table content contract to check for the columns existence
Assumes a isValidTable() call with be made prior so it may skip it and save many redundant if statements

@param  string  $table  table name, used to fetch the content contract
@param  [type]  $column [description]
@return boolean true if the column is found in the table contract
Checks a column exists in a given table