src/Commands/ModelMakeCommand.php
private function handleOptionalMigrationOption()
    {
        if ($this->option('migration') === true) {
            $migrationName = 'create_' . $this->createMigrationName() . '_table';
            $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]);
        }
    }
private function handleOptionalMigrationOption()
    {
        if ($this->option('migration') === true) {
            $migrationName = 'create_' . $this->createMigrationName() . '_table';
            $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]);
        }
    }
private function handleOptionalMigrationOption ( ) { if ( $ this -> option ( 'migration' ) === true ) { $ migrationName = 'create_' . $ this -> createMigrationName ( ) . '_table' ; $ this -> call ( 'module:make-migration' , [ 'name' => $ migrationName , 'module' => $ this -> argument ( 'module' ) ] ) ; } }
Create the migration file with the given model if migration flag was used
Create the migration file with the given model if migration flag was used