aboutsummaryrefslogtreecommitdiff
path: root/database/factories/BookmarkSiteFactory.php
blob: c77c0117d7a50bb954c6d67e2059fd2dce023be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;
use App\Models\BookmarkCategory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\BookmarkSite>
 */
class BookmarkSiteFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'name' => $this->faker->name,
            'description' => $this->faker->sentence,
            'url' => $this->faker->url,
            'category' => BookmarkCategory::factory(),
        ];
    }
}