*/ class BudgetTransactionFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'transaction_id' => Transaction::factory(), 'budget_period_allocation_id' => BudgetPeriodAllocation::factory(), 'amount' => fake()->numberBetween(1000, 50000), ]; } }