hasMany(TestUser::class); } public function departments() { return $this->hasMany(TestDepartment::class, 'test_work_id'); } }