*/ class ArticleFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Article::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'titleurl' => $this->faker->slug(3), 'title' => $this->faker->words(3, true), 'main' => $this->faker->paragraphs(4, true), 'published' => 1, 'created_at' => Carbon::now()->toDateTimeString(), 'updated_at' => Carbon::now()->toDateTimeString(), ]; } }