CommentsFactory.php 506 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Database\Factories;
  3. use Illuminate\Database\Eloquent\Factories\Factory;
  4. /**
  5. * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
  6. */
  7. class CommentsFactory extends Factory
  8. {
  9. /**
  10. * Define the model's default state.
  11. *
  12. * @return array<string, mixed>
  13. */
  14. public function definition(): array
  15. {
  16. return [
  17. 'content' => $this->faker->paragraph(),
  18. 'is_banned' => $this->faker->boolean(70),
  19. ];
  20. }
  21. }