File manager - Edit - /var/www/html/spdc/api/database/factories/DepartmentFactory.php
Back
<?php namespace Database\Factories; use App\Enums\ScaleType; use App\Enums\WarningScaleType; use Illuminate\Database\Eloquent\Factories\Factory; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Department> */ class DepartmentFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed> */ public function definition() { return [ 'name' => fake()->unique->name, 'acronym' => fake()->unique->name, 'scale_type' => ScaleType::EQUIPE->value, 'warning_scale_type' => WarningScaleType::SEMANAL->value, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings