v5.0.0 update

This commit is contained in:
Mohit Panjwani
2021-11-30 18:58:19 +05:30
parent d332712c22
commit 082d5cacf2
1253 changed files with 88309 additions and 71741 deletions

View File

@ -3,6 +3,7 @@
namespace Database\Factories;
use Crater\Models\Address;
use Crater\Models\Customer;
use Crater\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
@ -29,11 +30,13 @@ class AddressFactory extends Factory
'city' => $this->faker->city,
'state' => $this->faker->state,
'country_id' => 231,
'company_id' => User::find(1)->companies()->first()->id,
'zip' => $this->faker->postcode,
'phone' => $this->faker->phoneNumber,
'fax' => $this->faker->phoneNumber,
'type' => $this->faker->randomElement([Address::BILLING_TYPE, Address::SHIPPING_TYPE]),
'user_id' => User::factory(),
'customer_id' => Customer::factory()
];
}
}