mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
v6 update
This commit is contained in:
@ -25,7 +25,8 @@ class CompanyFactory extends Factory
|
||||
return [
|
||||
'unique_hash' => str_random(20),
|
||||
'name' => $this->faker->name(),
|
||||
'owner_id' => User::where('role', 'super admin')->first()->id
|
||||
'owner_id' => User::where('role', 'super admin')->first()->id,
|
||||
'slug' => $this->faker->word
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ class TaxFactory extends Factory
|
||||
'amount' => $this->faker->randomDigitNotNull,
|
||||
'compound_tax' => $this->faker->randomDigitNotNull,
|
||||
'base_amount' => $this->faker->randomDigitNotNull,
|
||||
'currency_id' => Currency::where('name', 'US Dollar')->first()->company_id,
|
||||
'currency_id' => Currency::where('name', 'US Dollar')->first()->id,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user