You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
605 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <?php
  2. namespace Database\Factories\Documents;
  3. use App\Documents\ModelDocument;
  4. use App\Documents\PolicyDocument;
  5. use Database\Factories\BaseFactory;
  6. use Illuminate\Database\Eloquent\Factories\Factory;
  7. class PolicyDocumentFactory extends Factory
  8. {
  9. use BaseFactory;
  10. protected $model = PolicyDocument::class;
  11. public function definition()
  12. {
  13. return [
  14. '_id' => app('nextId'),
  15. 'name' => fake()->name,
  16. 'labels' => fake()->name,
  17. 'needs' => [],
  18. ];
  19. }
  20. public function dependencyProvider()
  21. {
  22. return [];
  23. }
  24. }