2021-06-10 13:17:44 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
use App\Models\Supplier;
|
2021-06-10 13:19:27 -07:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
2021-06-10 13:17:44 -07:00
|
|
|
|
|
|
|
class SupplierFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2023-03-20 11:39:27 -07:00
|
|
|
protected $model = Supplier::class;
|
2021-06-10 13:17:44 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
2023-03-02 13:41:52 -08:00
|
|
|
'name' => $this->faker->company(),
|
|
|
|
'address' => $this->faker->streetAddress(),
|
|
|
|
'address2' => $this->faker->secondaryAddress(),
|
|
|
|
'city' => $this->faker->city(),
|
|
|
|
'state' => $this->faker->stateAbbr(),
|
|
|
|
'zip' => $this->faker->postCode(),
|
|
|
|
'country' => $this->faker->countryCode(),
|
|
|
|
'contact' => $this->faker->name(),
|
|
|
|
'phone' => $this->faker->phoneNumber(),
|
|
|
|
'fax' => $this->faker->phoneNumber(),
|
|
|
|
'email' => $this->faker->safeEmail(),
|
|
|
|
'url' => $this->faker->url(),
|
2021-06-10 13:17:44 -07:00
|
|
|
'notes' => $this->faker->text(191), // Supplier notes can be a max of 255 characters.
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|