public function getAttributes()
    {
        return collect(Schema::getColumnListing($this->table))->filter(function ($column) {
            return !in_array($column, $this->exclude);
        });
    }
public function getAttributes()
    {
        return collect(Schema::getColumnListing($this->table))->filter(function ($column) {
            return !in_array($column, $this->exclude);
        });
    }
public function getAttributes ( ) { return collect ( Schema :: getColumnListing ( $ this -> table ) ) -> filter ( function ( $ column ) { return ! in_array ( $ column , $ this -> exclude ) ; } ) ; }
Get attributes from an existing table.

@return array
Get attributes from an existing table .