ProductConfigGroups.php 768 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\App\Models\Whmcs;
  3. use \Illuminate\Database\Eloquent\model as EloquentModel;
  4. use ThurData\Servers\KerioEmail\Core\Models\Whmcs\ProductConfigOption;
  5. /**
  6. * Description of ProductConfigGroups
  7. *
  8. * @autor ThurData <info@thurdata.ch>
  9. *
  10. * @property int $id
  11. * @property string $name
  12. * @property string $description
  13. */
  14. class ProductConfigGroups extends EloquentModel
  15. {
  16. /**
  17. * Table name
  18. *
  19. * @var string
  20. */
  21. protected $table = 'tblproductconfiggroups';
  22. /**
  23. * Indicates if the model should be timestamped.
  24. *
  25. * @var bool
  26. */
  27. public $timestamps = false;
  28. public function options()
  29. {
  30. return $this->hasMany(ProductConfigOption::class, 'gid', 'id');
  31. }
  32. }