jonnybarnes.uk/database/factories/WebMentionFactory.php

35 lines
743 B
PHP
Raw Normal View History

<?php
namespace Database\Factories;
use App\Models\WebMention;
use Illuminate\Database\Eloquent\Factories\Factory;
2023-02-18 09:34:57 +00:00
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\WebMention>
*/
class WebMentionFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = WebMention::class;
/**
* Define the model's default state.
*
2023-02-18 09:34:57 +00:00
* @return array<string, mixed>
*/
2023-02-18 09:34:57 +00:00
public function definition(): array
{
return [
'source' => $this->faker->url,
'target' => url('notes/1'),
2022-05-14 17:44:14 +01:00
'type' => 'in-reply-to',
'content' => $this->faker->paragraph,
];
}
}