src/Way/Generators/Commands/PivotGeneratorCommand.php
public function fire()
    {
        list($tableOne, $tableTwo) = $this->sortDesiredTables();

        $this->call('generate:migration', [
            'migrationName' => "create_{$tableOne}_{$tableTwo}_table",
            '--fields' => $this->getMigrationFields($tableOne, $tableTwo)
        ]);
    }
public function fire()
    {
        list($tableOne, $tableTwo) = $this->sortDesiredTables();

        $this->call('generate:migration', [
            'migrationName' => "create_{$tableOne}_{$tableTwo}_table",
            '--fields' => $this->getMigrationFields($tableOne, $tableTwo)
        ]);
    }
public function fire ( ) { list ( $ tableOne , $ tableTwo ) = $ this -> sortDesiredTables ( ) ; $ this -> call ( 'generate:migration' , [ 'migrationName' => "create_{$tableOne}_{$tableTwo}_table" , '--fields' => $ this -> getMigrationFields ( $ tableOne , $ tableTwo ) ] ) ; }
Create a pivot table migration
Create a pivot table migration