mpociot / laravel-test-factory-helper

Generate Laravel test factories from your existing models
935 stars 87 forks source link

For ENUM #23

Open timoteo7 opened 6 years ago

timoteo7 commented 6 years ago

Migration: $table->enum('status',['ACTIVE','DISABLED','EXPIRED','WAITING','CONSUMED']);

Factory: 'status'=> $faker->randomElement($array = array ('ACTIVE','DISABLED','EXPIRED','WAITING','CONSUMED')),

jrmadsen67 commented 5 years ago

@timoteo7 what is the problem we should be seeing?

please be a bit more verbose in your tickets

timoteo7 commented 5 years ago

For string, or for interger this factory helper, can you make this for 'ENUM' too ?

like in example that i put, The 'Migration' is what i have, the 'Factory' is what i expected

(sorry my english)

skeets23 commented 4 years ago

45 will fix this issue.