jonnybarnes.uk/database/factories/WebMentionFactory.php

32 lines
629 B
PHP
Raw Normal View History

<?php
namespace Database\Factories;
use App\Models\WebMention;
use Illuminate\Database\Eloquent\Factories\Factory;
class WebMentionFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = WebMention::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
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,
];
}
}