26 lines
632 B
PHP
26 lines
632 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\NominationEnsemble;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class NominationEnsembleFactory extends Factory
|
|
{
|
|
protected $model = NominationEnsemble::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name(),
|
|
'entry_deadline' => Carbon::now(),
|
|
'minimum_grade' => 1,
|
|
'maximum_grade' => 15,
|
|
'data' => json_encode([2, 5, 3]),
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
];
|
|
}
|
|
}
|