laravel-test-factory-helper
laravel-test-factory-helper copied to clipboard
Generate Laravel test factories from your existing models
is postgres or sqlite support available? Just tried both with no luck at 'SHOW COLUMNS... ' :cry: If so, maybe there should be a message in README
I am using Laravel 5.3 and MySQL 5.7 with JSON column created by $table->json('column'); Such columns are not recognized by factory generator. I suppose this is because Doctrine still doesn't...
I use `--dir app/Models` and it seems the class path is not correct so I just manage to edit the code "temporarily" and it worked: 
For ENUM
Migration: $table->enum('status',['ACTIVE','DISABLED','EXPIRED','WAITING','CONSUMED']); Factory: 'status'=> $faker->randomElement($array = array ('ACTIVE','DISABLED','EXPIRED','WAITING','CONSUMED')),
Trying to run this in Lumen 5.8.* gives me: ``` Exception: No hint path defined for [test-factory-helper]. Could not analyze class []. ``` Any idea on how to fix it...
**Complete error message:** (occurs when running `php artisan generate:model-factory`) ```text PHP Fatal error: Cannot declare class PragmaRX\Tracker\Data\Repositories\Session, because the name is already in use in /app/VendorOverrides/PragmaRX/Tracker/Data/Repositories/Session.php on line 330 Symfony\Component\Debug\Exception\FatalErrorException:...
'level' => $faker->boolean, but in mysql level =》tinyint
Migration: $table->smallInteger('small'); Factory: 'small'=> $faker->numberBetween($min = 0, $max = 32767),
Hi, I tried to store the factory in different location, but it doesn't write in the appropriate file, instead always write to default file ModelFactory.php Though I have created the...
Hello @mpociot Hope to find you well! So, with DBAL, for SQL server, is needed to set some option. Already solver this before. For such connections, to work out of...