applicant-site/database/factories/NewsFactory.php

19 lines
324 B
PHP
Raw Permalink Normal View History

2024-03-20 13:09:39 +03:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class NewsFactory extends Factory
{
public function definition(): array
{
return [
'name' => fake()->name(),
'text' => fake()->text(),
'photo' => fake()->url(),
];
}
}