2022-08-01 16:52:16 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2023-01-05 17:01:42 +00:00
|
|
|
class TicketComment extends Model
|
|
|
|
{
|
|
|
|
protected $fillable = [
|
|
|
|
'ticket_id', 'user_id', 'ticketcomment',
|
|
|
|
];
|
2022-08-01 16:52:16 +00:00
|
|
|
|
2023-01-05 17:01:42 +00:00
|
|
|
public function ticketcategory()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(TicketCategory::class);
|
|
|
|
}
|
2022-08-01 16:52:16 +00:00
|
|
|
|
2023-01-05 17:01:42 +00:00
|
|
|
public function ticket()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(Ticket::class);
|
|
|
|
}
|
2022-08-01 16:52:16 +00:00
|
|
|
|
2023-01-05 17:01:42 +00:00
|
|
|
public function user()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(User::class);
|
|
|
|
}
|
2022-08-01 16:52:16 +00:00
|
|
|
}
|