snipe-it/database/factories/SupplierFactory.php

41 lines
1.1 KiB
PHP
Raw Normal View History

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
*/
protected $model = Supplier::class;
2021-06-10 13:17:44 -07:00
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'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.
];
}
}