laravel-test-factory-helper icon indicating copy to clipboard operation
laravel-test-factory-helper copied to clipboard

For ENUM

Open timoteo7 opened this issue 7 years ago • 3 comments

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

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

timoteo7 avatar Aug 09 '18 18:08 timoteo7

@timoteo7 what is the problem we should be seeing?

please be a bit more verbose in your tickets

jrmadsen67 avatar Dec 24 '18 02:12 jrmadsen67

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)

timoteo7 avatar Jan 10 '19 23:01 timoteo7

#45 will fix this issue.

skeets23 avatar Nov 29 '19 04:11 skeets23