All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 1m2s
25 lines
562 B
PHP
25 lines
562 B
PHP
<?php
|
|
|
|
namespace Database\Factories\System;
|
|
|
|
use App\Models\System\Company;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class CompanyFactory extends Factory
|
|
{
|
|
protected $model = Company::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->company,
|
|
'code' => $this->faker->unique()->bothify('COMP###'),
|
|
'status' => 1,
|
|
'settings' => [
|
|
'enable_material_code' => false,
|
|
'enable_points' => false,
|
|
],
|
|
];
|
|
}
|
|
}
|