src/Builders/MigrationBuilder.php
public function buildSourceTableMigration($name)
    {
        $path = $this->getMigrationPath($name);
        $migration = $this->getTableMigrationName($name);

        $contents = view('_hierarchy::migrations.table', [
            'table'     => source_table_name($name),
            'migration' => $migration
        ])->render();

        $this->write($path, $contents);

        return $this->getMigrationClassPath($migration);
    }
public function buildSourceTableMigration($name)
    {
        $path = $this->getMigrationPath($name);
        $migration = $this->getTableMigrationName($name);

        $contents = view('_hierarchy::migrations.table', [
            'table'     => source_table_name($name),
            'migration' => $migration
        ])->render();

        $this->write($path, $contents);

        return $this->getMigrationClassPath($migration);
    }
public function buildSourceTableMigration ( $ name ) { $ path = $ this -> getMigrationPath ( $ name ) ; $ migration = $ this -> getTableMigrationName ( $ name ) ; $ contents = view ( '_hierarchy::migrations.table' , [ 'table' => source_table_name ( $ name ) , 'migration' => $ migration ] ) -> render ( ) ; $ this -> write ( $ path , $ contents ) ; return $ this -> getMigrationClassPath ( $ migration ) ; }
Builds a source table migration

@param string $name
@return string
Builds a source table migration