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
766 B

2 years ago
  1. <?php
  2. namespace Database\Factories\Documents;
  3. use App\Documents\ModelDocument;
  4. use Illuminate\Database\Eloquent\Factories\Factory;
  5. class ModelDocumentFactory extends Factory
  6. {
  7. protected $model = ModelDocument::class;
  8. public function definition()
  9. {
  10. return [
  11. '_id' => app('nextId'),
  12. 'name' => fake()->name,
  13. 'labels' => fake()->name,
  14. 'publishable' => true,
  15. 'group_id' => 1,
  16. 'index_policy' => 1,
  17. 'store_policy' => 1,
  18. 'get_policy' => 1,
  19. 'update_policy' => 1,
  20. 'delete_policy' => 1,
  21. 'restore_policy' => 1,
  22. 'trash_policy' => 1,
  23. 'fields' => [],
  24. 'relations' => [],
  25. ];
  26. }
  27. }