Addon.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\Core\Models\Whmcs;
  3. use \Illuminate\Database\Eloquent\Model as EloquentModel;
  4. /**
  5. * Description of Addon
  6. *
  7. * @var int id
  8. * @var string packages
  9. * @var string name
  10. * @var string description
  11. * @var string billingcycle
  12. * @var string tax
  13. * @var string showorder
  14. * @var string downloads
  15. * @var string autoactivate
  16. * @var string suspendproduct
  17. * @var int welcomeemail
  18. * @var int weight
  19. *
  20. * @author Paweł Złamaniec <pawel.zl@thurdata.com>
  21. */
  22. class Addon extends EloquentModel
  23. {
  24. /**
  25. * Table name
  26. *
  27. * @var string
  28. */
  29. protected $table = 'tbladdons';
  30. protected $primaryKey = 'id';
  31. /**
  32. * Eloquent guarded parameters
  33. * @var array
  34. */
  35. protected $guarded = ['id'];
  36. /**
  37. * Eloquent fillable parameters
  38. * @var array
  39. */
  40. protected $fillable = ['packages', 'name', 'description', 'billingcycle', 'tax', 'showorder', 'downloads', 'autoactivate', 'suspendproduct', 'welcomeemail', 'weight'];
  41. /**
  42. * Indicates if the model should soft delete.
  43. *
  44. * @var bool
  45. */
  46. protected $softDelete = false;
  47. /**
  48. * Indicates if the model should be timestamped.
  49. *
  50. * @var bool
  51. */
  52. public $timestamps = false;
  53. public function __construct(array $attributes = [])
  54. {
  55. parent::__construct($attributes);
  56. }
  57. }