create and change code
This commit is contained in:
@@ -25,17 +25,13 @@ class HarimHistoryFactory extends Factory
|
||||
'previous_state_name' => function (array $attributes) {
|
||||
return HarimStates::query()->find($attributes['state_id'])->name;
|
||||
},
|
||||
'current_state_id' => HarimState::factory(),
|
||||
'current_state_name' => function (array $attributes) {
|
||||
return HarimState::query()->find($attributes['state_id'])->name;
|
||||
},
|
||||
|
||||
'action_id' => HarimAction::factory(),
|
||||
'action_name' => function (array $attributes) {
|
||||
return HarimAction::query()->find($attributes['state_id'])->name;
|
||||
},
|
||||
'expert_id' => User::factory(),
|
||||
'expert_description' => $this->fake()->text,
|
||||
'previous_data' => json_encode(['fake']),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user