/** * Write the migration file to disk. * * @param string $name * @param string $extension * @param string $table * @param bool $create * @return string */ protected function writeMigration($name, $extension, $table, $create) { $path = $this->creator->create($name, $extension, $table, $create); $file = pathinfo($path, PATHINFO_FILENAME); $this->info("Created migration: {$file}"); }