snipe-it/database/factories/CompanyFactory.php

30 lines
538 B
PHP
Raw Normal View History

2021-06-10 13:17:44 -07:00
<?php
namespace Database\Factories;
use App\Models\Company;
2021-06-10 13:19:27 -07:00
use Illuminate\Database\Eloquent\Factories\Factory;
2021-06-10 13:17:44 -07:00
class CompanyFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Company::class;
2021-06-10 13:17:44 -07:00
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->unique()->company(),
'created_by' => 1,
2021-06-10 13:17:44 -07:00
];
}
}