29 lines
683 B
PHP
29 lines
683 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Publication;
|
|
use App\Models\Resume;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/** @extends Factory<Publication> */
|
|
final class PublicationFactory extends Factory
|
|
{
|
|
protected $model = Publication::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name(),
|
|
'publisher' => $this->faker->word(),
|
|
'released_at' => Carbon::now(),
|
|
'url' => $this->faker->url(),
|
|
'summary' => $this->faker->text(),
|
|
'resume_id' => Resume::factory(),
|
|
];
|
|
}
|
|
}
|