make app database

This commit is contained in:
Meghdad committed 2026-07-22 15:46:41 +03:30
1 parent 78d276dd5d
commit 56a52be180
24 files changed
+1046 -7

No files matched your search

@@ -0,0 +1,37 @@
<?php
namespace Database\Factories;
use App\Models\StageDefinition;
use App\Models\WorkflowConfiguration;
use App\Models\WorkflowConfigurationStep;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<WorkflowConfigurationStep>
*/
class WorkflowConfigurationStepFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'workflow_configuration_id' => WorkflowConfiguration::factory(),
'stage_definition_id' => StageDefinition::factory(),
'position' => fake()->unique()->numberBetween(1, 1000),
'rules' => [],
'is_enabled' => true,
];
}
public function disabled(): static
{
return $this->state(fn (array $attributes) => [
'is_enabled' => false,
]);
}
}