src/Way/Generators/Commands/ResourceGeneratorCommand.php
protected function callMigration($resource)
    {
        $migrationName = $this->getMigrationName($resource);

        if ($this->confirm("Do you want me to create a '$migrationName' migration and schema for this resource? [yes|no]"))
        {
            $this->call('generate:migration', [
                'migrationName' => $migrationName,
                '--fields' => $this->option('fields')
            ]);
        }
    }
protected function callMigration($resource)
    {
        $migrationName = $this->getMigrationName($resource);

        if ($this->confirm("Do you want me to create a '$migrationName' migration and schema for this resource? [yes|no]"))
        {
            $this->call('generate:migration', [
                'migrationName' => $migrationName,
                '--fields' => $this->option('fields')
            ]);
        }
    }
protected function callMigration ( $ resource ) { $ migrationName = $ this -> getMigrationName ( $ resource ) ; if ( $ this -> confirm ( "Do you want me to create a '$migrationName' migration and schema for this resource? [yes|no]" ) ) { $ this -> call ( 'generate:migration' , [ 'migrationName' => $ migrationName , '--fields' => $ this -> option ( 'fields' ) ] ) ; } }
Call migration generator if user confirms

@param $resource
Call migration generator if user confirms