CourseWork/database/factories/SubjectFactory.php

24 lines
482 B
PHP
Raw Normal View History

2024-06-15 20:55:20 +04:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Subject>
*/
class SubjectFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => 'Предмет' . fake()->unique()->numberBetween(1, 100)
];
}
}