src/Command/TriggerMakeCommand.php
private function writeMigration($name, $eventObjectTable, $actionTiming, $event)
    {
        $file = pathinfo($this->creator->write(
            $name,
            $eventObjectTable,
            $actionTiming,
            $event,
            $this->getMigrationPath()
        ), PATHINFO_FILENAME);

        $this->line("<info>Created Migration:</info> {$file}");
    }
private function writeMigration($name, $eventObjectTable, $actionTiming, $event)
    {
        $file = pathinfo($this->creator->write(
            $name,
            $eventObjectTable,
            $actionTiming,
            $event,
            $this->getMigrationPath()
        ), PATHINFO_FILENAME);

        $this->line("<info>Created Migration:</info> {$file}");
    }
private function writeMigration ( $ name , $ eventObjectTable , $ actionTiming , $ event ) { $ file = pathinfo ( $ this -> creator -> write ( $ name , $ eventObjectTable , $ actionTiming , $ event , $ this -> getMigrationPath ( ) ) , PATHINFO_FILENAME ) ; $ this -> line ( "<info>Created Migration:</info> {$file}" ) ; }
Write to migration file.

@param string $name
@param string $eventObjectTable
@param string $actionTiming
@param string $event
@return void
Write to migration file .