Roman_applicant-site/database/factories/NewsFactory.php

19 lines
324 B
PHP

<?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(),
];
}
}