blob: ea950a1454d9da7a86d213da1b46a67b0a41882c (
plain) (
tree)
|
|
<?php
namespace Database\Factories;
use App\Models\Post;
use Illuminate\Database\Eloquent\Factories\Factory;
class PostFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Post::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->word,
'author' => $this->faker->name,
'text' => $this->faker->text,
];
}
}
|