todo/database/factories/NoteFactory.php

19 lines
358 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class NoteFactory extends Factory
{
public function definition(): array
{
return [
'name' => fake()->name(),
'file' => fake()->name(),
'description' => fake()->text(),
'task_id' => 1,
];
}
}