20 lines
457 B
PHP
20 lines
457 B
PHP
<?php
|
|
|
|
namespace Database\Factories\Website;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ProjectFactory extends Factory
|
|
{
|
|
protected $model = \App\Models\Website\Project::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'category_id' => \App\Models\Website\ProjectCategory::factory(),
|
|
'image1' => $this->faker->imageUrl(),
|
|
'image2' => $this->faker->imageUrl(),
|
|
];
|
|
}
|
|
}
|