[ 'subject' => $faker->text(), 'status' => 'open', ‘priority' => 'normal', ]; }); $factory->state(App\Task::class, 'doing', [ 'status' => 'doing', ]); $factory->state(App\Task::class, ‘high', [ 'priority' => 'high', ]); $task = factory(Task::class)->states([‘doing’,’high'])->make();