First commit

This commit is contained in:
dyzulk
2025-12-30 12:11:01 +07:00
commit f68f34980a
150 changed files with 22717 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
class TicketReply extends Model
{
use HasFactory, HasUuids;
protected $fillable = [
'ticket_id',
'user_id',
'message',
'attachment_path',
];
/**
* Get the ticket that owns the reply.
*/
public function ticket()
{
return $this->belongsTo(Ticket::class);
}
/**
* Get the user that wrote the reply.
*/
public function user()
{
return $this->belongsTo(User::class);
}
public function attachments()
{
return $this->hasMany(TicketAttachment::class);
}
}