TicketReply.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace ModulesGarden\Servers\ZimbraEmail\Core\Models\Whmcs;
  3. use \Illuminate\Database\Eloquent\Model as EloquentModel;
  4. use Michelf\Markdown;
  5. /**
  6. * Description of Product
  7. *
  8. * @author Paweł Złamaniec <pawel.zl@modulesgarden.com>
  9. * @var
  10. */
  11. class TicketReply extends EloquentModel
  12. {
  13. /**
  14. * Table name
  15. *
  16. * @var string
  17. */
  18. protected $table = 'tblticketreplies';
  19. protected $primaryKey = 'id';
  20. /**
  21. * Eloquent guarded parameters
  22. * @var array
  23. */
  24. protected $guarded = ['id'];
  25. /**
  26. * Eloquent fillable parameters
  27. * @var array
  28. */
  29. protected $fillable = ['tid', 'userid', 'contactid', 'name', 'email', 'date', 'message', 'admin', 'attachment', 'rating', 'editor'];
  30. /**
  31. * Indicates if the model should soft delete.
  32. *
  33. * @var bool
  34. */
  35. protected $softDelete = false;
  36. /**
  37. * Indicates if the model should be timestamped.
  38. *
  39. * @var bool
  40. */
  41. public $timestamps = false;
  42. public function __construct(array $attributes = [])
  43. {
  44. parent::__construct($attributes);
  45. }
  46. /**
  47. * Get realted client
  48. */
  49. public function client()
  50. {
  51. return $this->belongsTo("ModulesGarden\Servers\ZimbraEmail\Core\Models\Whmcs\Client", "userid");
  52. }
  53. }