TestDepartmentFactory.php 410 B

123456789101112131415161718192021
  1. <?php
  2. namespace Knuckles\Scribe\Tests\Fixtures\inmemory;
  3. use Illuminate\Database\Eloquent\Factories\Factory;
  4. class TestDepartmentFactory extends Factory
  5. {
  6. protected $model = TestDepartment::class;
  7. /**
  8. * @inheritDoc
  9. */
  10. public function definition()
  11. {
  12. return [
  13. 'name' => 'My best department',
  14. 'test_work_id' => TestWork::factory(),
  15. ];
  16. }
  17. }