src/Console/MigrateMakeCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $name = trim($input->getArgument('name'));
        $table = $input->getOption('table');
        $create = $input->getOption('create') ?: false;
        $path = $input->getOption('path');
        $type = $input->getOption('type');

        // If no table was given as an option but a create option is given then we
        // will use the "create" option as the table name. This allows the devs
        // to pass a table name into this option as a short-cut for creating.
        if (! $table && is_string($create)) {
            $table = $create;

            $create = true;
        }

        $creator = Creator::new($type, $path, $output);
        $creator->create($name, $table, $create);
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $name = trim($input->getArgument('name'));
        $table = $input->getOption('table');
        $create = $input->getOption('create') ?: false;
        $path = $input->getOption('path');
        $type = $input->getOption('type');

        // If no table was given as an option but a create option is given then we
        // will use the "create" option as the table name. This allows the devs
        // to pass a table name into this option as a short-cut for creating.
        if (! $table && is_string($create)) {
            $table = $create;

            $create = true;
        }

        $creator = Creator::new($type, $path, $output);
        $creator->create($name, $table, $create);
    }
Execute command, captain.

@param \Symfony\Component\Console\Input\InputInterface $input
@param \Symfony\Component\Console\Output\OutputInterface $output
@return int|null|void