Currently, if you run the php artisan test-factory-helper:generate command, and the database/factories/ModelFactory.php does not exist before running the command, the model factories are generated correctly, but there is no opening <?php on the newly created database/factories/ModelFactory.php file.
I don't have an example to show but I have tested it on 2 separate projects, without the ModelFactory.php pre-existing in both projects.
Currently, if you run the
php artisan test-factory-helper:generate
command, and thedatabase/factories/ModelFactory.php
does not exist before running the command, the model factories are generated correctly, but there is no opening<?php
on the newly createddatabase/factories/ModelFactory.php
file.I don't have an example to show but I have tested it on 2 separate projects, without the
ModelFactory.php
pre-existing in both projects.