protected function buildTable(Entity $entity)
    {
        // Prepare pivot tables and one-to-* columns
        $attributes = $this->prepareRelationships($entity) + $entity->getAttributeConfig();

        // Allow other services to append schema
        foreach(event(new SchemaPrepare($entity)) as $attrs){

            foreach((array)$attrs as $key => $value){

                $attributes[$key] = $this->applyAttributeDefaults($value);

            }

        }

        // Append attribute columns
        return $this->addAttributes($entity->getTable(), $attributes);
    }
protected function buildTable(Entity $entity)
    {
        // Prepare pivot tables and one-to-* columns
        $attributes = $this->prepareRelationships($entity) + $entity->getAttributeConfig();

        // Allow other services to append schema
        foreach(event(new SchemaPrepare($entity)) as $attrs){

            foreach((array)$attrs as $key => $value){

                $attributes[$key] = $this->applyAttributeDefaults($value);

            }

        }

        // Append attribute columns
        return $this->addAttributes($entity->getTable(), $attributes);
    }
protected function buildTable ( Entity $ entity ) { // Prepare pivot tables and one-to-* columns $ attributes = $ this -> prepareRelationships ( $ entity ) + $ entity -> getAttributeConfig ( ) ; // Allow other services to append schema foreach ( event ( new SchemaPrepare ( $ entity ) ) as $ attrs ) { foreach ( ( array ) $ attrs as $ key => $ value ) { $ attributes [ $ key ] = $ this -> applyAttributeDefaults ( $ value ) ; } } // Append attribute columns return $ this -> addAttributes ( $ entity -> getTable ( ) , $ attributes ) ; }
Build our table

@return array
Build our table