TicketComment.php 475 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class TicketComment extends Model
  5. {
  6. protected $fillable = [
  7. 'ticket_id', 'user_id', 'ticketcomment',
  8. ];
  9. public function ticketcategory()
  10. {
  11. return $this->belongsTo(TicketCategory::class);
  12. }
  13. public function ticket()
  14. {
  15. return $this->belongsTo(Ticket::class);
  16. }
  17. public function user()
  18. {
  19. return $this->belongsTo(User::class);
  20. }
  21. }