2026-06-18 12:12:39 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
|
|
|
|
|
|
class IssueComment extends Model
|
|
|
|
|
{
|
|
|
|
|
use SoftDeletes;
|
|
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'issue_id', 'user_id', 'body',
|
|
|
|
|
'uuid', 'client_updated_at',
|
|
|
|
|
];
|
|
|
|
|
|
2026-08-28 13:04:28 +02:00
|
|
|
public function issue()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Issue::class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function user()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(User::class);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function media()
|
|
|
|
|
{
|
|
|
|
|
return $this->morphMany(Media::class, 'mediable');
|
|
|
|
|
}
|
2026-06-18 12:12:39 +02:00
|
|
|
}
|