Socieboy\Forum\Commands\MigrateForumCommand::createMigration PHP Method

createMigration() protected method

Create a base migration file for the reminders.
protected createMigration ( $table ) : string
$table
return string
    protected function createMigration($table)
    {
        $name = 'create_' . $table . '_table';
        $path = $this->laravel['path.database'] . '/migrations';
        $migration = $this->laravel['migration.creator']->create($name, $path);
        file_put_contents($migration, $this->getMigrationStub($table));
    }